mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 18:07:23 +08:00
003998c921
In a galaxy far, far away, event_blockage_t was intended to block only cetain events. But it always just blocked everything. Eliminate the event block mask.
26 lines
515 B
Fish
26 lines
515 B
Fish
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
|
|
|
|
echo "command false:"
|
|
command false
|
|
echo "command true:"
|
|
command true
|
|
echo "command false | true:"
|
|
command false | command true
|
|
|
|
function test_blocks
|
|
block -l
|
|
command echo "This is the process whose exit event shuld be blocked"
|
|
echo "This should come before the event handler"
|
|
end
|
|
test_blocks
|
|
echo "Now event handler should have run"
|