From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 3 22:24:49 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D876F16A41C for ; Sun, 3 Jul 2005 22:24:49 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F13B443D45 for ; Sun, 3 Jul 2005 22:24:48 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: (qmail 23126 invoked by uid 207); 3 Jul 2005 22:24:46 -0000 Received: from keramida@freebsd.org by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.211):. Processed in 1.501302 secs); 03 Jul 2005 22:24:46 -0000 Received: from dialup211.ach.sch.gr (HELO gothmog.gr) ([81.186.70.211]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 3 Jul 2005 22:24:44 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j63MOenF044015; Mon, 4 Jul 2005 01:24:40 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j63MNp7L043972; Mon, 4 Jul 2005 01:23:51 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 4 Jul 2005 01:23:51 +0300 From: Giorgos Keramidas To: mdff Message-ID: <20050703222351.GA43904@gothmog.gr> References: <20050703132417.59F34186800@mgedv.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050703132417.59F34186800@mgedv.at> Cc: freebsd-bugs@freebsd.org Subject: Re: find(1) man-page/find error with -x/-xdev X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 22:24:50 -0000 On 2005-07-03 15:24, mdff wrote: > as documented on 5.4-RELEASE, there's a divergence between > man 1 find and the command itself and the option "-x" a.k.a. "-xdev". > although "-xdev" is "deprecated", it's the only working one ;-) > > $ man 1 find > <...snip...> > -x Prevent find from descending into directories that have a > device > number different than that of the file from which the descent > began. > > This option is equivalent to the deprecated -xdev primary. > <...snip...> > > $ find . -x > find: -x: unknown option > > $ find . -xdev > <...works...> The two (-x and -xdev) are slightly different, but the small difference is very important. The -x option is a find(1) option, while -xdev is an "expression predicate" or "primary" as the description of -x calls it. Options should appear *before* any path names, while "primaries" should appear *after* path names. This means that these two are valid: find -x . find . -xdev But these are not: find . -x find -xdev . Bearing this in mind, do you still think that the manpage is wrong? If yes, suggestions to improve the wording of the description of the -x option are certainly welcome. - Giorgos