diff options
Diffstat (limited to 'sources/bin/.scala_wrapper.tmpl')
-rw-r--r-- | sources/bin/.scala_wrapper.tmpl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sources/bin/.scala_wrapper.tmpl b/sources/bin/.scala_wrapper.tmpl index 33ec17c9a6..a748bc763a 100644 --- a/sources/bin/.scala_wrapper.tmpl +++ b/sources/bin/.scala_wrapper.tmpl @@ -597,14 +597,12 @@ test_print_version() { test_print_testing() { [ $# = 1 ] || abort "internal error"; printf_outline "testing: "; - if [ -n "$BASH" ]; then - case "$1" in - "$TESTROOT"* ) - printf "%-60s " "[...]${1#$TESTROOT}"; - return 0; - ;; - esac; - fi; + case "$1" in + "$TESTROOT"* ) + printf "%-60s " "[...]`expr "$1" : "$TESTROOT\(.*\)"`"; + return 0; + ;; + esac; printf "%-60s " "$1"; } |