From: Dmitry V. Levin Date: Thu, 15 Mar 2012 20:17:49 +0000 (+0000) Subject: tests: robustify again buggy shells X-Git-Tag: v4.7~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84abf700110ef54ac2bf8de4b09c54ca437f390a;p=strace tests: robustify again buggy shells * tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax instead of "${parameter-word}". Reported-by: Mike Frysinger --- diff --git a/tests/init.sh b/tests/init.sh index 5176d05a..b0dbbf84 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -16,7 +16,7 @@ check_prog() check_strace() { - STRACE=${*-../strace} + STRACE=${*:-../strace} $STRACE -V > /dev/null || framework_failure_ "$STRACE is not available" }