From b5756023920bc48bd879b419f80849ded38173c8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 12 Oct 2011 16:29:23 -0700 Subject: t0501: fix ambiguous shell construct for capture + subshells Starting with "$((" can be ambiguous and confused for shell arithmetic. --- t/t0501-cramp-rainsocket.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/t0501-cramp-rainsocket.sh b/t/t0501-cramp-rainsocket.sh index 762d5ac..43eceb1 100755 --- a/t/t0501-cramp-rainsocket.sh +++ b/t/t0501-cramp-rainsocket.sh @@ -25,7 +25,7 @@ t_begin "setup and start" && { } t_begin "wait for server to say hello to us" && { - ok=$((curl --no-buffer -sS http://$listen/ || :) | \ + ok=$( (curl --no-buffer -sS http://$listen/ || :) | \ (tr -d '\0\0377' || :) | \ awk '/Hello from the Server/ { print "ok"; exit 0 }') -- cgit v1.2.3-24-ge0c7