Permalink
Browse files

Merge pull request #75 from grundprinzip/fix_numbered_directories_and…

…_files

Fix for numbered directories or files
  • Loading branch information...
2 parents 6d297ae + fcf5dd3 commit e785ff6d9a082de0d73fd3b721bf59f53b59932b @ndbroadbent ndbroadbent committed Jan 8, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/git/status_shortcuts.sh
@@ -121,7 +121,11 @@ scmb_expand_args() {
for arg in "$@"; do
if [[ "$arg" =~ ^[0-9]+$ ]] ; then # Substitute $e{*} variables for any integers
if [ "$first" -eq 1 ]; then first=0; else printf '\t'; fi
- eval printf '%s' "\"\$$git_env_char$arg\""
+ if [ -e "$arg" ]; then
+ printf '%s' "$arg"
+ else
+ eval printf '%s' "\"\$$git_env_char$arg\""
+ fi
elif [[ "$arg" =~ ^[0-9]+-[0-9]+$ ]]; then # Expand ranges into $e{*} variables
for i in $(eval echo {${arg/-/..}}); do

0 comments on commit e785ff6

Please sign in to comment.