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: [EMAIL PROTECTED]
             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-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to