grep is always recursive

Derek Broughton derek at pointerstop.ca
Fri Jan 30 00:44:45 UTC 2009


Smoot Carl-Mitchell wrote:

> On Thu, 2009-01-29 at 18:33 -0500, Matthew Flaschen wrote:
>> Smoot Carl-Mitchell wrote:
>> > I do not think we want to change the documentation.  From a standards
>> > perspective, we want to put options first and not encourage people to
>> > place them willy-nilly on the command line.
>> 
>> Honestly, placing options willy-nilly is convenient far more than it's
>> harmful. For instance, I often tack -l at the end of ls commands.  E.g.
>> in succession:
> 
> Convenient, yes.  But I would not write a script depending on the GNU
> getopt behavior if I wanted it to be portable.

Precisely - I rely on the fact that placement of options is unimportant when 
I'm working in a bash shell, but if I'm actually writing a script, I try to 
do it as the man page says.  The ability to tack "-l" at the end of your ls 
command is what they call an "undocumented feature", and _documenting_ it is 
actually going in the wrong direction.







More information about the ubuntu-users mailing list