delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4AA1E430.9090607@byu.net> |
Date: | Fri, 04 Sep 2009 22:08:16 -0600 |
From: | Eric Blake <ebb9 AT byu DOT net> |
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 AT cygwin DOT com, lee AT veritech DOT com |
Subject: | Re: Cygwin 'find' does not support the '-L' predicate? |
References: | <4AA1DFE9 DOT 9070803 AT veritech DOT com> |
In-Reply-To: | <4AA1DFE9.9070803@veritech.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
-----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 AT byu DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |