From f594e6742633f2f8c20b1a7b29935d3196696b94 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 14 Aug 2012 16:32:03 -0400 Subject: validate argument count with string -> enum conversion --- runtests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtests') diff --git a/runtests b/runtests index a0762cb..f07bdad 100755 --- a/runtests +++ b/runtests @@ -19,7 +19,7 @@ do_test() { (( ++testno )) - result=$("$ponymix" "$verb" -- ${arg+"$arg"} 2>/dev/null) + result=$("$ponymix" "$verb" -- ${3+"$arg"} 2>/dev/null) if [[ $result != $expected ]]; then printf '==> test %d FAIL: expected %s, got %s\n' "$testno" "$expected" "$result" (( ++fail )) -- cgit v1.2.3