aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-04-08 19:48:04 -0500
committerRob Landley <rob@landley.net>2018-04-08 19:48:04 -0500
commit4f81242e384930a683b3591bc5a634fa22dda8ca (patch)
treee5a5704d5660411be87de8b11d6d8cf68dc0bc83 /scripts
parentef46bb70820717036c3d078b3e659afade713f24 (diff)
downloadtoybox-4f81242e384930a683b3591bc5a634fa22dda8ca.tar.gz
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).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/runtest.sh2
1 files changed, 1 insertions, 1 deletions
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