Date: Thu, 7 Aug 2003 22:13:56 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: doug@safeport.com Cc: freebsd-questions@freebsd.org Subject: Re: grep weirdness Message-ID: <20030807221210.F76742-100000@ren.sasknow.com> In-Reply-To: <20030807192335.C9028@pemaquid.safeport.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. - Ryan -- Ryan Thompson <ryan@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030807221210.F76742-100000>