From: martin f. krafft Date: Tue, 23 Apr 2013 11:58:46 +0000 (+0200) Subject: Replace call to basename with shell-foo X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/25de0d292345a90b7d6dbd99f54c87e10eea114c Replace call to basename with shell-foo This is POSIX-compliant: % 0=/test/bla/foo % echo ${0##*/} foo Signed-off-by: martin f. krafft --- diff --git a/vcsh b/vcsh index b03df7a..b5c59df 100755 --- a/vcsh +++ b/vcsh @@ -12,7 +12,7 @@ # which is admittedly extremely unlikely to the point of being impossible, # this software will most likely follow suit. -SELF=$(basename $0) +SELF=${0##*/} VERSION='1.2' fatal() {