www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/05/01:34:09

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 5 Sep 2009 01:33:43 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 'find' does not support the '-L' predicate?
Message-ID: <20090905053343.GA18091@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4AA1DFE9 DOT 9070803 AT veritech DOT com> <4AA1E430 DOT 9090607 AT byu DOT net> <4AA1E7AE DOT 20902 AT veritech DOT com>
MIME-Version: 1.0
In-Reply-To: <4AA1E7AE.20902@veritech.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019