aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:51:53 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:51:53 +1300
commitcdd61d223572df29e9a14be47c7d1a493d9a9200 (patch)
treebfd2ee782cf6190a27e2e19c820f9b8eda3ecc84 /bin
parentTerser way to implement quiet command failures (diff)
downloaddotfiles-cdd61d223572df29e9a14be47c7d1a493d9a9200.tar.gz
dotfiles-cdd61d223572df29e9a14be47c7d1a493d9a9200.zip
Wrap fnl(1df) command so out files always opened
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fnl b/bin/fnl
index d27d1f90..6969665b 100755
--- a/bin/fnl
+++ b/bin/fnl
@@ -11,7 +11,7 @@ fi
dir=$(mktd fnl) || exit
# Run the command; keep its exit status
-"$@" >"$dir"/stdout 2>"$dir"/stderr
+{ "$@" ; } >"$dir"/stdout 2>"$dir"/stderr
ret=$?
# Run wc(1) on each of the files