mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:47:04 +08:00
Add test for caller-exit events
This was a bit fiddly!
This commit is contained in:
parent
371516382d
commit
56e1109609
|
@ -101,3 +101,18 @@ echo $status
|
|||
#CHECK: Command
|
||||
#CHECK: sleep
|
||||
#CHECK: 0
|
||||
|
||||
function foo
|
||||
function caller --on-job-exit caller
|
||||
echo caller
|
||||
end
|
||||
echo foo
|
||||
end
|
||||
|
||||
function bar --on-event bar
|
||||
echo (foo)
|
||||
end
|
||||
|
||||
emit bar
|
||||
#CHECK: foo
|
||||
#CHECK: caller
|
||||
|
|
Loading…
Reference in New Issue
Block a user