Follow-up Comment #1, bug #56855 (project findutils): There is also a case for having the empty string there. If it was the case for %f as well, that would mean that -printf %h/%f would always be equivalent to -printf %p
More importantly, in cases like: find / -name foo -printf '%h/bar\0' | xargs -r0 cmd that means you don't get an incorrect //bar when foo is found in /. Remember that //foo is not guaranteed by POSIX to be the same as /foo (and in practice is not on some systems like cygwin). The :h and :t history modifiers of tcsh and bash (not zsh) do return the empty string for / _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56855> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/