make symlink handling compatible with whitespaces
authorgagern
Wed, 27 Apr 2005 23:02:08 +0200
changeset 15864 cc1b4a289321
parent 15863 78db9506cc78
child 15865 222092a48131
make symlink handling compatible with whitespaces
bin/isabelle
bin/isabelle-interface
bin/isabelle-process
--- a/bin/isabelle	Wed Apr 27 16:41:03 2005 +0200
+++ b/bin/isabelle	Wed Apr 27 23:02:08 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
 
 THIS=$(cd "$(dirname "$0")"; pwd)
--- a/bin/isabelle-interface	Wed Apr 27 16:41:03 2005 +0200
+++ b/bin/isabelle-interface	Wed Apr 27 23:02:08 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
 
 
--- a/bin/isabelle-process	Wed Apr 27 16:41:03 2005 +0200
+++ b/bin/isabelle-process	Wed Apr 27 23:02:08 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