[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: Gecko/20060909 Firefox/


                 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



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.

623 $ mkdir dir1
624 $ mkdir directory2
625 $ touch dir1/foo
626 $ touch directory2/bar
627 $ find dir1 directory2 -printf '%H %P\n'
dir1 foo
dire ctory2/bar

oldfind gives the expected output:
628 $ oldfind dir1 directory2 -printf '%H %P\n'
dir1 foo
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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]