From e1b8144604cb13876804c6434dac04aad7da3e10 Mon Sep 17 00:00:00 2001 From: Daniel Krikun Date: Fri, 12 Apr 2019 22:28:35 +0300 Subject: [PATCH] Preserve the original exit code in bash-hook --- fasd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fasd b/fasd index 4275b7e..4c74aff 100755 --- a/fasd +++ b/fasd @@ -125,8 +125,10 @@ EOS bash-hook) cat <> "$_FASD_SINK" 2>&1 + bash -c "exit \$orig_rc" } # add bash hook