Skip to content

Commit

Permalink
env.sh: wrap arguments around "" and no special handling for last arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Feb 25, 2016
1 parent 06ba871 commit 2f306d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ else
p=$(($p+1))
[ $p -gt $# ] && break
a=`eval echo "\$\{$p\}"`
par="$par$a "
par="$par\"$a\" "
done
eval $new_env $par "\"\${$#}\""
eval $new_env $par
else
eval $new_env $*
fi
Expand Down

0 comments on commit 2f306d0

Please sign in to comment.