aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-13 12:02:00 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-13 12:02:00 +1300
commitc4a1f8a7ea386e89cf4fee286b3c1aac61e4f16c (patch)
treea54e8c8dd47c97610c8616b252b7aaaeea9684ab /bin
parente6493290cba7e1ede2ccb93aae14fd3e321891a6 (diff)
downloaddotfiles-c4a1f8a7ea386e89cf4fee286b3c1aac61e4f16c.tar.gz
dotfiles-c4a1f8a7ea386e89cf4fee286b3c1aac61e4f16c.zip
Document why fnl(1df) command is wrapped
Because I forgot
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=$?