Menu

#21 -printf option to find is non-standard

open-fixed
nobody
None
5
2004-06-07
2004-05-03
Anonymous
No

According to SUSv3:

http://www.opengroup.org/onlinepubs/009695399/utilities/find.html

the -printf flag to find is a non-standard extension, and may not be
present on all systems. This causes the make to barf in the locate-
test script with:

find: -printf: unknown expression primary

Discussion

  • adam li

    adam li - 2004-05-27

    Logged In: YES
    user_id=763964

    We will try to fix this problem latter.

     
  • adam li

    adam li - 2004-05-27
    • status: open --> open-later
     
  • adam li

    adam li - 2004-06-07

    Logged In: YES
    user_id=763964

    Fixed in CVS.

    Replace the -printf "%h\n" with a '-exec dirname '{}' ';'',
    which I searched the spec and it looks is posix compliant.

     
  • adam li

    adam li - 2004-06-07
    • status: open-later --> open-fixed
     

Log in to post a comment.