bin/isabelle
changeset 15843 d5bd4a18ce70
parent 15784 3a214de33d53
child 15864 cc1b4a289321
     1.1 --- a/bin/isabelle	Tue Apr 26 17:44:24 2005 +0200
     1.2 +++ b/bin/isabelle	Tue Apr 26 19:49:39 2005 +0200
     1.3 @@ -5,11 +5,12 @@
     1.4  #
     1.5  # Smart selection of isabelle-process versus isabelle-interface.
     1.6  
     1.7 -THIS="$0"
     1.8 -while [ -L "$THIS" ]; do
     1.9 -    THIS="$(dirname "$THIS")/$(LC_ALL=C ls -l "$THIS" | sed 's/.* -> //')"
    1.10 -done
    1.11 -THIS="$(cd "$(dirname "$THIS")"; pwd)"
    1.12 +if [ -L "$0" ]; then
    1.13 +  TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
    1.14 +  exec $(cd "$(dirname "$0")"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET") "$@"
    1.15 +fi
    1.16 +
    1.17 +THIS=$(cd "$(dirname "$0")"; pwd)
    1.18  NAME="$(basename "$0")"
    1.19  
    1.20  case "$NAME" in