From 25de0d292345a90b7d6dbd99f54c87e10eea114c Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 23 Apr 2013 13:58:46 +0200 Subject: [PATCH] Replace call to basename with shell-foo This is POSIX-compliant: % 0=/test/bla/foo % echo ${0##*/} foo Signed-off-by: martin f. krafft --- vcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.2