| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4AA1E40C.5030403@veritech.com> |
| Date: | Sat, 05 Sep 2009 00:07:40 -0400 |
| From: | "Lee D. Rothstein" <l1ee057 AT veritech DOT com> |
| User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | find not consistent with man/info pages? Was: Re: Cygwin 'find' does not support the '-L' predicate? |
| References: | <4AA1DFE9 DOT 9070803 AT veritech DOT com> |
| In-Reply-To: | <4AA1DFE9.9070803@veritech.com> |
| 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 |
I got the terminology all mixed up, but the bottom line is:
# '-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 '
Lee Rothstein wrote:
> Apparently there are these thingies (special type of options)
> called predicates in 'find' that are specified before a path that
> tell it to follow or not follow links, etc.
>
> I think I need the '-L' predicate that says follow them thar
> links. However, the following command line works until I add the
> '-L' predicate.
>
> The following works:
>
> find "$PWD" -maxdepth 1 -type f -executable
>
> but does not find executable files that are links
>
> 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?
>
> Lee
>
> --
> 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
>
>
--
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 |