mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 13:23:53 +08:00
82ef2d19a5
We've been moving away from full second timeouts, they were piling up.
24 lines
369 B
Fish
24 lines
369 B
Fish
jobs -q; echo $status
|
|
sleep 5 &
|
|
sleep 5 &
|
|
jobs -c
|
|
jobs -q; echo $status
|
|
bg -23 1 2>/dev/null
|
|
or echo bg: invalid option -23 >&2
|
|
fg 3
|
|
bg 3
|
|
sleep 1 &
|
|
disown
|
|
jobs -c
|
|
disown foo
|
|
disown (jobs -p)
|
|
or exit 0
|
|
|
|
# Verify `jobs` output within a function lists background jobs
|
|
# https://github.com/fish-shell/fish-shell/issues/5824
|
|
function foo
|
|
sleep 0.2 &
|
|
jobs -c
|
|
end
|
|
foo
|