diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-21 16:29:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-21 16:29:48 +1200 |
commit | 73b78c9484f7ac377e07805e019ff182f280dcbe (patch) | |
tree | e5a2b4bc8263e663fd235823c9ffe8ee6ca04c5e /bin/han | |
parent | Add han(1) (diff) | |
download | dotfiles-73b78c9484f7ac377e07805e019ff182f280dcbe.tar.gz dotfiles-73b78c9484f7ac377e07805e019ff182f280dcbe.zip |
Remove exec calls so trap works correctly
Diffstat (limited to 'bin/han')
-rwxr-xr-x | bin/han | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |