From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1609 invoked by alias); 5 Sep 2009 04:08:12 -0000 Received: (qmail 1601 invoked by uid 22791); 5 Sep 2009 04:08:12 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from qmta05.emeryville.ca.mail.comcast.net (HELO QMTA05.emeryville.ca.mail.comcast.net) (76.96.30.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Sep 2009 04:08:07 +0000 Received: from OMTA02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by QMTA05.emeryville.ca.mail.comcast.net with comcast id cr9X1c0040QkzPwA5s86oj; Sat, 05 Sep 2009 04:08:06 +0000 Received: from [192.168.0.101] ([24.10.247.15]) by OMTA02.emeryville.ca.mail.comcast.net with comcast id cs851c0020Lg2Gw8Ns85jN; Sat, 05 Sep 2009 04:08:06 +0000 Message-ID: <4AA1E430.9090607@byu.net> Date: Sat, 05 Sep 2009 04:08:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin@cygwin.com, lee@veritech.com Subject: Re: Cygwin 'find' does not support the '-L' predicate? References: <4AA1DFE9.9070803@veritech.com> In-Reply-To: <4AA1DFE9.9070803@veritech.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00144.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. Also, it is shorter to use . than "$PWD" (for that matter, GNU find has an implicit . if you don't specify a directory). I think you're asking the wrong question, though - if what you really want is to find all symlinks whose targets are executables, try this: find -P -maxdepth 1 -type l -xtype f -executable - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqh5DAACgkQ84KuGfSFAYATaACgpJXCp62sjsqJcGDIWHJGJe0t eMEAniL1bKVglLYepAXD701/Yk0hpqGJ =tJOl -----END PGP SIGNATURE----- -- 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