diff options
author | paltherr <paltherr@epfl.ch> | 2004-09-23 15:05:02 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-09-23 15:05:02 +0000 |
commit | 085cfba242dba05e0acec1ee328a53b1ce218b14 (patch) | |
tree | ff94b9429265534f2ec0ff45044d860eea8dd564 /sources/bin/.scala_wrapper.tmpl | |
parent | a1f8145d482b53ee25be7748c36244aaddcfeabb (diff) | |
download | scala-085cfba242dba05e0acec1ee328a53b1ce218b14.tar.gz scala-085cfba242dba05e0acec1ee328a53b1ce218b14.tar.bz2 scala-085cfba242dba05e0acec1ee328a53b1ce218b14.zip |
- Generalized code for [...]
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"; } |