X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/fcc208c558816bbbf9df27f21b007c3f50dcdef5..184efd38c9ea254620ae17285ffbf923a319b3ee:/maninst diff --git a/maninst b/maninst index cb238c5..20fbf6c 100755 --- a/maninst +++ b/maninst @@ -24,8 +24,7 @@ case $op in *) echo >&2 "$0: unknown operation \`$1'"; exit 1 ;; esac for i; do - base=`echo "$i" | sed 's:^.*/::'` - sec=`echo "$base" | sed 's:^.*\.::'` + base=${i##*/} sec=${base##*.} case $op in install) echo -n " Installing manpage $base$ext"