[Users] Q. re: tags (tagging locally-saved messages for use outside Claws)

Victoria Stuart (gmail) victoria.a.stuart at gmail.com
Fri Mar 24 17:34:19 CET 2017


Hi Ralf: thank you for your response,

    Instead of something cryptic like

         printf "${PWD##*/}\n"

    I would use

        basename $PWD

    or

	basename $(pwd)

--------------------

Of course, I considered that!  ;-)

Whatever your preference, my rationale for

    ${PWD##*/}

is found here:

    http://stackoverflow.com/questions/1371261/get-current-directory-name-without-full-path-in-bash-script/1371283#1371283

    "No need for basename, and especially no need for a subshell running pwd
     (which adds an extra, and expensive, fork operation); the shell can do
     this internally using parameter expansion ..."

Best, ...

==============================================================================



More information about the Users mailing list