aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/fnl.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/fnl.sh b/bin/fnl.sh
index 86e582f1..e8a5f071 100644
--- a/bin/fnl.sh
+++ b/bin/fnl.sh
@@ -9,7 +9,9 @@ fi
# Create a temporary directory; note that we *don't* clean it up on exit
dir=$(mktd fnl) || exit
-# Run the command; keep its exit status
+# Run the command; keep its exit status; wrap the command in braces so that the
+# out files are always opened even if the command is not found or otherwise
+# can't be run; some BSD shells require this, I forget which ones
{ "$@" ; } >"$dir"/stdout 2>"$dir"/stderr
ret=$?