bash_aliases: cs: properly handle args with spaces

This commit is contained in:
Josh Holtrop 2012-04-12 13:18:31 -04:00
parent c5f2d97217
commit 528597c48a

View File

@ -156,7 +156,9 @@ if [ -e /bin/cygwin1.dll ]; then
{ {
while [ "$1" != "" ] while [ "$1" != "" ]
do do
(cd $(dirname "$1"); HOME='' cygstart $(basename "$1")) dn=$(dirname "$1")
bn=$(basename "$1")
(cd "$dn"; HOME='' cygstart "$bn")
shift shift
done done
} }