add tests for #5824

This commit is contained in:
David Adam 2019-04-19 14:08:16 +08:00
parent d0735882a3
commit 4ddfd73079
2 changed files with 9 additions and 0 deletions

View File

@ -13,3 +13,10 @@ jobs -c
disown foo disown foo
disown (jobs -p) disown (jobs -p)
or exit 0 or exit 0
# https://github.com/fish-shell/fish-shell/issues/5824
function foo
sleep 1 &
jobs -c
end
foo

View File

@ -6,3 +6,5 @@ sleep
Command Command
sleep sleep
sleep sleep
Command
sleep