bugfindutils - Bugs: bug #12085, -printf pathname:%h/%f gives wrong...

 
 

bug #12085: -printf pathname:%h/%f gives wrong result

Submitted by:  None
Submitted on:  Tue 22 Feb 2005 06:56:42 AM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.1.20
Fixed Release: 4.2.19

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 24 Feb 2005 09:49:05 AM UTC, comment #3:

Thanks for such a quick reaction
--
vda

Anonymous
Wed 23 Feb 2005 12:32:48 AM UTC, comment #2:

I've changed my mind. "%h" now expands to "." instead of nothing when the matched file is in the current directory. The documentation has been updated to make this clear. The test suite also now contains a test for this case.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 22 Feb 2005 07:01:04 PM UTC, comment #1:

Fixed in CVS. The result should now be

# find.fixed Makefile po/Makefile -printf 'pathname:%h/%f\n'
pathname:/Makefile
pathname:po/Makefile

Here %h expands to nothing where there is no slash in the filename. That seems to me to be most consistent withthe documentation.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 22 Feb 2005 06:56:42 AM UTC, original submission:

Wrong result for files without slashes:

# find Makefile po/Makefile -printf 'pathname:%h/%f\n'
/Makefile <===== ??!
pathname:po/Makefile

Patch fixes this:
# find.fixed Makefile po/Makefile -printf 'pathname:%h/%f\n'
pathname:./Makefile
pathname:po/Makefile

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2606:  findutils-4.1.20.dirprintf.patch added by None (673B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Mar 2005 11:53:37 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.19
Tue 22 Feb 2005 07:01:04 PM UTCjayStatusNone=>Fixed
  Assigned toNone=>jay
Tue 22 Feb 2005 06:56:42 AM UTCNoneAttached File-=>Added findutils-4.1.20.dirprintf.patch, #2228
  Carbon-Copy-=>Added vda --AT-- ilport --DOT-- com --DOT-- ua

Back to the top


Powered by Savane 3.1-cleanup1