freebsd-questions message

Query: [How to search]

Display: Description: Sort:


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep weirdness



Thank you, this was exactly correct. I never made the shell connection.

On Thu, 7 Aug 2003, Ryan Thompson wrote:

> doug@xxxxxxxxxxxx wrote to freebsd-questions@xxxxxxxxxxx:
>
> > 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@xxxxxxxxxxxx
Voice: 301-469-8766
  Fax: 301-469-0601
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"