From a528fab356f1b93c34cc7a436e53c89080ee12cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Mon, 28 Jul 2014 02:49:52 +0000 Subject: [PATCH] Avoid tripping over 'unbound variable' shell error --- tests/threadsafety | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/threadsafety b/tests/threadsafety index bfbc86a..a048915 100755 --- a/tests/threadsafety +++ b/tests/threadsafety @@ -162,7 +162,7 @@ UNSAFE="$UNSAFE srandom" set -- $UNSAFE cmd="-e [^.>=_0-9a-z]($1" shift -while test "$1"; do +while [[ $# != 0 ]]; do cmd="${cmd}|$1" shift done -- 1.8.5.3