From 4f81242e384930a683b3591bc5a634fa22dda8ca Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 8 Apr 2018 19:48:04 -0500 Subject: Add -- to "eval". If you ever do have a command name beginning with a -, eval won't run it by default, because even though it takes no arguments it tries to parse them anyway, so it complains it's an unrecognized argument. Solution: -- as first argument (which is parsed and stops argument parsing). --- scripts/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 235b8839..016658a9 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -94,7 +94,7 @@ testing() echo -ne "$3" > expected echo -ne "$4" > input - echo -ne "$5" | ${EVAL:-eval} "$2" > actual + echo -ne "$5" | ${EVAL:-eval} -- "$2" > actual RETVAL=$? # Catch segfaults -- cgit v1.2.3