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" <[email protected]> wrote:
> > > > On Wed, Apr 9, 2014 at 1:17 PM, Matan Ziv-Av <[email protected]> wrote: > >> On Wed, 9 Apr 2014, Erez D wrote: >> >> erez@homer:~$ grep pppd * >>> erez@homer:~$ >>> >>> however: >>> >>> erez@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. [email protected] >> >> >> > > _______________________________________________ > Linux-il mailing list > [email protected] > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > >
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
