On Thu, 7 Aug 2003, Ryan Thompson wrote: >[EMAIL PROTECTED] wrote to [EMAIL PROTECTED]: [...] >> artemis:~> grep -ilr taiwan * \ >> grep: unrecognized option `--showDropTarget' |____ does not work >> Usage: grep [OPTION]... PATTERN [FILE]... | >> Try `grep --help' for more information. / >> >> while > >Hmm... My guess is that * expands to something containing a leading >hyphen, most likely called --showDropTarget :-) The * is expanded by the >shell, not grep(1).
If so, that's bad: the first non-option should disable further option processing. In the example cited, "taiwan" is not a command option, so anything to the right of "taiwan" should not be interpreted as a command option, even if it begins with a hyphen. This also suggests that grep is re-invoking itself as it recurses. If so, it should be an easy thing to patch the source so that a double hyphen ("--") occurs before the first argument. -- Steve Coile Systems Administrator Nando Media ph: 919-861-1200 fax: 919-861-1300 e-mail: [EMAIL PROTECTED] http://www.nandomedia.com _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"