Skip to content

Commit

Permalink
prefer shell-builtin functions over basename
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Aug 4, 2011
1 parent e992ab7 commit 29b6a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/rbenv-gemset
Expand Up @@ -45,7 +45,7 @@ case "$1" in
if [ -n "$gemsets" ]; then
echo "$version:"
for gemset in ${gemsets[@]}; do
echo " `basename $gemset`"
echo " ${gemset##*/}"
done
fi
done
Expand Down Expand Up @@ -153,7 +153,7 @@ PLUGIN
;;

*)
echo "`basename $0` [command] [options]" >&2
echo "${0##*/} [command] [options]" >&2
echo >&2
echo "possible commands are:" >&2
echo " create [version] [gemset]" >&2
Expand Down

0 comments on commit 29b6a82

Please sign in to comment.