SyntaxFix
Write A Post
Hire A Developer
Questions
I saw this usage in a script and thought it was a good substitute for invoking basename within a script.
oldIFS=$IFS IFS=/ for basetool in $0 ; do : ; done IFS=$oldIFS
... this is a replacement for the code: basetool=$(basename $0)
basetool=$(basename $0)