aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-21 16:29:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-21 16:29:48 +1200
commit73b78c9484f7ac377e07805e019ff182f280dcbe (patch)
treee5a2b4bc8263e663fd235823c9ffe8ee6ca04c5e
parentAdd han(1) (diff)
downloaddotfiles-73b78c9484f7ac377e07805e019ff182f280dcbe.tar.gz
dotfiles-73b78c9484f7ac377e07805e019ff182f280dcbe.zip
Remove exec calls so trap works correctly
-rwxr-xr-xbin/han4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/han b/bin/han
index 5248f285..d8d1e8dd 100755
--- a/bin/han
+++ b/bin/han
@@ -44,10 +44,10 @@ trap cleanup EXIT
# If we have exactly one argument and a call to the help builtin with that
# argument succeeds, display its output with `pager -s`.
if (($# == 1)) && help "${helpopts[@]}" "$1" >"$out" 2>/dev/null ; then
- exec pager -s -- "$out"
+ pager -s -- "$out"
# Otherwise, just pass all the arguments to man(1).
else
- exec man "$@"
+ man "$@"
fi