fish-shell/tests/signal.in

16 lines
232 B
Fish
Raw Normal View History

2019-02-21 01:07:29 +00:00
function alarm --on-signal ALRM
echo ALRM received
end
2019-02-23 20:41:01 +00:00
2019-02-21 01:07:29 +00:00
kill -s ALRM $fish_pid
2019-02-23 20:41:01 +00:00
function anychild --on-process-exit 0
# Type and exit status
echo $argv[1] $argv[3]
end
command false
command true
command false | command true