make symlink handling compatible with whitespaces
authorwenzelm
Thu, 28 Apr 2005 21:36:25 +0200
changeset 15877 c9efc3e3fd44
parent 15876 a67343c6ab2a
child 15878 8192fcf13618
make symlink handling compatible with whitespaces
bin/isatool
build
--- a/bin/isatool	Thu Apr 28 21:36:08 2005 +0200
+++ b/bin/isatool	Thu Apr 28 21:36:25 2005 +0200
@@ -8,7 +8,7 @@
 
 if [ -L "$0" ]; then
   TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
-  exec $(cd "$(dirname "$0")"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET") "$@"
+  exec "$(cd "$(dirname "$0")"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
 fi
 
 
--- a/build	Thu Apr 28 21:36:08 2005 +0200
+++ b/build	Thu Apr 28 21:36:25 2005 +0200
@@ -7,7 +7,7 @@
 
 if [ -L "$0" ]; then
   TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
-  exec $(cd "$(dirname "$0")"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET") "$@"
+  exec "$(cd "$(dirname "$0")"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
 fi