From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13041 invoked by alias); 5 Sep 2009 05:34:02 -0000 Received: (qmail 13028 invoked by uid 22791); 5 Sep 2009 05:34:01 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-54-238.bstnma.fios.verizon.net (HELO cgf.cx) (173.76.54.238) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Sep 2009 05:33:54 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id DED8213C0C4 for ; Sat, 5 Sep 2009 01:33:43 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id D2F5E2B35F; Sat, 5 Sep 2009 01:33:43 -0400 (EDT) Date: Sat, 05 Sep 2009 05:34:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Cygwin 'find' does not support the '-L' predicate? Message-ID: <20090905053343.GA18091@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4AA1DFE9.9070803@veritech.com> <4AA1E430.9090607@byu.net> <4AA1E7AE.20902@veritech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AA1E7AE.20902@veritech.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-09/txt/msg00146.txt.bz2 On Sat, Sep 05, 2009 at 12:23:10AM -0400, Lee Rothstein wrote: >Eric Blake wrote: >> According to Lee Rothstein on 9/4/2009 9:50 PM: >>> The following, which I assume (according to man and info) will >>> find executables that are links, does not work at all: >>> >>> find -L "$PWD" -maxdepth 1 -type f -executable >>> >>> Or, is this pilot error? >> >> Pilot error. -L works just fine. >I got the terminiology all wrong but find on my system does not allow -L > >Here what works: > > # '-follow' is supposed to be deprecated, but the replacement > # '-L' specified in 'man' and 'info' pages does not appear to > # exist in Cygwin 'find' version 4.5.4 > find "$PWD" -maxdepth 1 -type f -follow -executable | gawk ' > >If I replace '-follow' with '-L' it tells me : > >find: unknown predicate `-L' That's because, as the man page says, the -L has to come first. You can't replace the -follow with -L. It has to be: find -L "$PWD" -maxdepth 1 ... cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple