X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/0871cffdcdc55b143c124075dffb1d1b10426ffa..794f0aac:/vcsh?ds=sidebyside diff --git a/vcsh b/vcsh index b03df7a..c9c706b 100755 --- a/vcsh +++ b/vcsh @@ -12,6 +12,12 @@ # which is admittedly extremely unlikely to the point of being impossible, # this software will most likely follow suit. +basename() { + local f; f="${1##*/}" + [ -z "$2" ] || f="${f%$2}" + echo "$f" +} + SELF=$(basename $0) VERSION='1.2'