Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2003 01:21:27 -0400 (EDT)
From:      doug@safeport.com
To:        Ryan Thompson <ryan@sasknow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: grep weirdness
Message-ID:  <20030808011905.O9028@pemaquid.safeport.com>
In-Reply-To: <20030807221210.F76742-100000@ren.sasknow.com>
References:  <20030807221210.F76742-100000@ren.sasknow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you, this was exactly correct. I never made the shell connection.

On Thu, 7 Aug 2003, Ryan Thompson wrote:

> doug@safeport.com wrote to freebsd-questions@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@safeport.com
Voice: 301-469-8766
  Fax: 301-469-0601



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030808011905.O9028>