From 4a3cda1495383d7ba786e2d10f21ff27fa1f01e0 Mon Sep 17 00:00:00 2001 From: David Woods Date: Wed, 8 Jul 2015 23:56:20 -0400 Subject: [PATCH] update function parameter for EXIT signal changed `function __trap_handler_EXIT --on-exit %self` to `function __trap_handler_EXIT --on-process-exit %self` I'm guessing the on-exit syntax was from an older version? Trapping EXIT with that syntax caused errors. --- share/functions/trap.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/trap.fish b/share/functions/trap.fish index 640567f3c..ff4868f24 100644 --- a/share/functions/trap.fish +++ b/share/functions/trap.fish @@ -12,7 +12,7 @@ function __trap_switch switch $argv[1] case EXIT - echo --on-exit %self + echo --on-process-exit %self case '*' echo --on-signal $argv[1]