[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18222] find -printf '%H %P' misbehaves with multiple paths
From: |
anonymous |
Subject: |
[bug #18222] find -printf '%H %P' misbehaves with multiple paths |
Date: |
Tue, 07 Nov 2006 07:22:30 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 |
URL:
<http://savannah.gnu.org/bugs/?18222>
Summary: find -printf '%H %P' misbehaves with multiple paths
Project: findutils
Submitted by: None
Submitted on: Tuesday 11/07/2006 at 07:22 UTC
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Release: 4.3.1
Fixed Release: None
_______________________________________________________
Details:
When find is passed multiple paths, it misreports the printf fields %H and
%P. Specifically, it splits the second path using the field length of the
first path.
Example:
623 $ mkdir dir1
624 $ mkdir directory2
625 $ touch dir1/foo
626 $ touch directory2/bar
627 $ find dir1 directory2 -printf '%H %P\n'
dir1
dir1 foo
dire
dire ctory2/bar
oldfind gives the expected output:
628 $ oldfind dir1 directory2 -printf '%H %P\n'
dir1
dir1 foo
directory2
directory2 bar
My find is:
GNU find version 4.3.1
Features enabled: O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS CBO(level=0)
My uname -a is:
CYGWIN_NT-5.1 frederick 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
Available only the item webpage | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18222>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #18222] find -printf '%H %P' misbehaves with multiple paths,
anonymous <=