Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Subject: findutils: "find /foo -printf '%P\n'" incorrect
From: Tim Moorhouse <tim@array.ca>
To: cygwin@cygwin.com
Content-Type: text/plain
Organization: Array Systems Computing
Date: Thu, 09 Dec 2004 10:26:29 -0500
Message-Id: <1102605989.7018.13.camel@mingus.array.ca>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Status: Clean
X-Virus-Status: Clean

I'm not sure when this stopped working, but it was in the last couple of
weeks.

Suppose I have a /foo/bar/baz file and do a "find /foo -printf '%P\n'".
I'm now getting "foo/bar/baz" as output instead of "bar/baz" - when
formatting the %P option of printf, it seems to be assuming that the
path on the command line is always "/" instead of what was actually
given.

The set of files is correct (it's not actually using "/" as the path and
looking through the entire filesystem), it's just the formatting of the
output that seems to be wrong. 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

