grep weirdness
doug at safeport.com
doug at safeport.com
Thu Aug 7 22:21:30 PDT 2003
Thank you, this was exactly correct. I never made the shell connection.
On Thu, 7 Aug 2003, Ryan Thompson wrote:
> doug at safeport.com wrote to freebsd-questions at freebsd.org:
>
> > On some of my hosts trying doing a recursive search gets a syntax
> > error. On most it works. As all these systems are built from the same
> > source tree, I am not sure where to look for the problem.
> >
> > 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).
>
> Try "grep -ilr taiwan ." instead.
>
_____
Douglas Denault
doug at safeport.com
Voice: 301-469-8766
Fax: 301-469-0601
More information about the freebsd-questions
mailing list