From c4a1f8a7ea386e89cf4fee286b3c1aac61e4f16c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Oct 2017 12:02:00 +1300 Subject: Document why fnl(1df) command is wrapped Because I forgot --- bin/fnl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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=$? -- cgit v1.2.3