bash_aliases: cs: properly handle args with spaces

This commit is contained in:
josh committed 2012-04-12 13:18:31 -04:00
1 parent c5f2d97217
commit 528597c48a
1 file changed
+3 -1
+3 -1
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
} }