fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningertests: filter control sequences only when interactive1e858eae3

master
770 B28 linesraw
1# RUN: env fth=%fish_test_helper %fish %s
2
3# These tests check how installed trap handlers are listed. Run separately from the main trap
4# handler to ensure a clean environment.
5
6trap -p
7# CHECK:
8
9# Validate both SIG, no-SIG, uppercase, and lowercase.
10trap "true" SIGTERM kill ExIT INT
11
12trap -p
13# CHECK: # Defined via `source`
14# CHECK: function __trap_handler_EXIT --on-event fish_exit
15# CHECK:  true;
16# CHECK: end
17# CHECK: # Defined via `source`
18# CHECK: function __trap_handler_INT --on-signal SIGINT
19# CHECK:  true;
20# CHECK: end
21# CHECK: # Defined via `source`
22# CHECK: function __trap_handler_KILL --on-signal SIGKILL
23# CHECK:  true;
24# CHECK: end
25# CHECK: # Defined via `source`
26# CHECK: function __trap_handler_TERM --on-signal SIGTERM
27# CHECK:  true;
28# CHECK: end