X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/caeaa9865cd39dc44caf78399b696a8dd14d0c5a..794f0aac869dda034300211e9be45db123d84377:/vcsh 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'