strange ( * vs ./* )
Amos Shapira
amos.shapira at gmail.com
Wed Apr 9 23:25:44 IDT 2014
Good catch Matan.
Another way to avoid this is to add "--" (two dashes) after all the flags
and before the file names to tell grep that everything after it is a file
name.
On 10 Apr 2014 00:38, "Erez D" <erez0001 at gmail.com> wrote:
>
>
>
> On Wed, Apr 9, 2014 at 1:17 PM, Matan Ziv-Av <matan at svgalib.org> wrote:
>
>> On Wed, 9 Apr 2014, Erez D wrote:
>>
>> erez at homer:~$ grep pppd *
>>> erez at homer:~$
>>>
>>> however:
>>>
>>> erez at homer:~$ grep pppd ./*
>>> ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT'
>>>
>>
>> Do you have a file whose name starts with a dash (-)?
>>
>> that was the issue.
> i had a file called '-q' .
> renaming it solved it
>
> thanks.
>
>>
>> --
>> Matan Ziv-Av. matan at svgalib.org
>>
>>
>>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140410/971e4578/attachment.html>
More information about the Linux-il
mailing list