Re: grep is always recursive



On Sun, Jan 25, 2009 at 09:08:27AM -0700, Smoot Carl-Mitchell wrote:

The GNU option processor does not care where an option appears in the
command line which is a little odd and not what the documentation
suggests is the correct syntax. e.g. options come first before file
names, etc. Anything with a leading "-" is considered an option. Try
this sometime:

ls <file> -l <another_file>

It certainly seems counter-intuitive to me, if not potentially
dangerous. Imagine the accidental chaining of options with 'rm'.

In any case, there is one less mystery in the world!

--
Hal


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: grep is always recursive
    ... The GNU option processor does not care where an option appears in the ... command line which is a little odd and not what the documentation ...
    (Ubuntu)
  • re: GCL - WTF?
    ... gcl -batch -load hello.o ... Take care, ... > To compile, I issue the command: ... > The documentation seems fairly sparse on these kinds of beginners ...
    (comp.lang.lisp)
  • Re: Man vs. Info: documenting the software
    ... S> search with a single search command is more useful to me. ... And again, I already addressed this: Manuals like that, sure, make them ... And this is why the GNU attitude is harmful; ... for which the documentation is in an awful state. ...
    (comp.unix.shell)
  • Re: Great SWT Program
    ... I think this syntax may go back to the Bourne shell. ... In most of the Unix shells I've used, as best I can remember, ... do requires launching an external command to massage some data, ... although how the documentation would lead a non-expert user to ...
    (comp.lang.java.programmer)
  • Single Source Documentation Woes
    ... provide the ability to single-source user manual documentation, ... | (WAP, HTML, etc.) | ... Application Name has the following command line options: ... To make life truly entertaining, ...
    (comp.programming)