grep weirdness

Ryan Thompson ryan at sasknow.com
Thu Aug 7 21:13:59 PDT 2003


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.

- Ryan

-- 
  Ryan Thompson <ryan at sasknow.com>

  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4

        Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America



More information about the freebsd-questions mailing list