summaryrefslogtreecommitdiff
path: root/reduce
diff options
context:
space:
mode:
Diffstat (limited to 'reduce')
-rwxr-xr-xreduce4
1 files changed, 2 insertions, 2 deletions
diff --git a/reduce b/reduce
index 2e7269c..b9b69fe 100755
--- a/reduce
+++ b/reduce
@@ -1,9 +1,9 @@
#!/bin/bash
fn=$1
-f() { eval "$fn $*"; }
+f() { eval "$fn" "$@"; }
a=$2
b=$3
shift 3
[[ -z "$b" ]] && exec echo "$a"
-exec "$0" "$fn" "$(f "$a" "$b")" "$@"
+exec "$0" "$fn" "$(f "$a" "$b")" "${@@Q}"