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. /
>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.
e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"