bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50259] -printf %h behaves weirdly with trailing slashes


From: Bernhard Voelker
Subject: [bug #50259] -printf %h behaves weirdly with trailing slashes
Date: Sun, 12 Feb 2017 08:27:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #5, bug #50259 (project findutils):

With that patch, you can also have a look on what's changed
compared to the installed version with the following snippet:

  $ mkdir -p foo/bar
  $ ln -snf foo foolink

  $ for opt in '' -H -L -P ; do
    printf "\n=== Differences for option: '%s' ===\n" "$opt"
    diff -u0 \
      <( /usr/bin/find $opt {,./}{/,.,foo,foolink}{,/,/.} -maxdepth 1 -printf
"%h/%f,%%p=%p,%%h='%h',%%f='%f'\n" ) \
      <(        ./find $opt {,./}{/,.,foo,foolink}{,/,/.} -maxdepth 1 -printf
"%h/%f,%%p=%p,%%h='%h',%%f='%f'\n" )
  done | column -t -s,


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50259>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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