From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 22:21:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A27737B401 for ; Thu, 7 Aug 2003 22:21:30 -0700 (PDT) Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F92543FB1 for ; Thu, 7 Aug 2003 22:21:29 -0700 (PDT) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (localhost [127.0.0.1]) by pemaquid.safeport.com (8.12.9/8.12.3) with ESMTP id h785LS5m056548; Fri, 8 Aug 2003 01:21:28 -0400 (EDT) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost)h785LRjM056545; Fri, 8 Aug 2003 01:21:27 -0400 (EDT) Date: Fri, 8 Aug 2003 01:21:27 -0400 (EDT) From: doug@safeport.com To: Ryan Thompson In-Reply-To: <20030807221210.F76742-100000@ren.sasknow.com> Message-ID: <20030808011905.O9028@pemaquid.safeport.com> References: <20030807221210.F76742-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: grep weirdness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2003 05:21:30 -0000 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