diff --git a/tcltk/ext2sim.sh.in b/tcltk/ext2sim.sh.in index 1ef20ad2..f737caf4 100755 --- a/tcltk/ext2sim.sh.in +++ b/tcltk/ext2sim.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Standalone script for ext2sim, for Tcl-based magic 8.0 # @@ -18,7 +18,7 @@ TCL_REL_OR_ABS=TCL_DIR_REL_OR_ABS if [ "${TCL_REL_OR_ABS:0:1}" = "/" ]; then TCL_DIR=$TCL_REL_OR_ABS else - TCL_DIR=$(dirname $(realpath ${BASH_SOURCE[0]}))/$TCL_REL_OR_ABS + TCL_DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))/$TCL_REL_OR_ABS fi # eval ${TCL_DIR}/magicdnull -dnull -noconsole -nowrapper $mgargs <