From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 21:13:58 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 A5FB737B401 for ; Thu, 7 Aug 2003 21:13:58 -0700 (PDT) Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id D966343FA3 for ; Thu, 7 Aug 2003 21:13:57 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from earl.sasknow.net (earl.sasknow.net [207.195.92.130]) by ren.sasknow.com (8.12.6p2/8.12.6) with ESMTP id h784DuGo008088; Thu, 7 Aug 2003 22:13:56 -0600 (CST) (envelope-from ryan@sasknow.com) Received: from ren (ren.sasknow.com [207.195.92.131]) by earl.sasknow.net (8.12.6p2/8.12.6) with ESMTP id h784DuS0038537; Thu, 7 Aug 2003 22:13:56 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Thu, 7 Aug 2003 22:13:56 -0600 (CST) From: Ryan Thompson To: doug@safeport.com In-Reply-To: <20030807192335.C9028@pemaquid.safeport.com> Message-ID: <20030807221210.F76742-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Audit: Email processed by earl.sasknow.com filter X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) 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 04:13:59 -0000 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 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