bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep recurse fails


From: John Cowan
Subject: Re: grep recurse fails
Date: Mon, 12 Oct 2009 10:11:50 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Dave B scripsit:

> > When using grep or fgrep like the following, if a sub-directory starting
> > with "---" is present in the current directory, grep fails with the
> > message "grep: unknown option  « ---<<directory name>> »"
> >
> > Example :
> >
> > $ ls
> > profil.centrapel.com
> > ---recrutement.centrapel.com
> > recrutement.centrapel.com
> >
> > $ fgrep -R "find me" *.*
> 
> fgrep -R -- "find me" *.*

That works, but it's still a bug that grep recognizes options after the
pattern argument has been given.

-- 
There is / One art                      John Cowan <address@hidden>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein




reply via email to

[Prev in Thread] Current Thread [Next in Thread]