mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Enhance the signal test
This commit is contained in:
@@ -2,5 +2,14 @@ function alarm --on-signal ALRM
|
||||
echo ALRM received
|
||||
end
|
||||
|
||||
|
||||
kill -s ALRM $fish_pid
|
||||
|
||||
function anychild --on-process-exit 0
|
||||
# Type and exit status
|
||||
echo $argv[1] $argv[3]
|
||||
end
|
||||
|
||||
command false
|
||||
command true
|
||||
command false | command true
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
ALRM received
|
||||
PROCESS_EXIT 1
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 0
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 1
|
||||
PROCESS_EXIT 0
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 0
|
||||
|
||||
Reference in New Issue
Block a user