mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
27 lines
427 B
Fish
27 lines
427 B
Fish
|
# RUN: %fish %s
|
||
|
|
||
|
# Ensure that we can wait for stuff.
|
||
|
status job-control full
|
||
|
|
||
|
set pids
|
||
|
|
||
|
for i in (seq 16)
|
||
|
command true &
|
||
|
set -a pids $last_pid
|
||
|
command false &
|
||
|
set -a pids $last_pid
|
||
|
end
|
||
|
|
||
|
# Note fish does not (yet) report the exit status of waited-on commands.
|
||
|
for pid in $pids
|
||
|
wait $pid
|
||
|
end
|
||
|
|
||
|
for i in (seq 16)
|
||
|
command true &
|
||
|
command false &
|
||
|
end
|
||
|
wait true false
|
||
|
jobs
|
||
|
# CHECK: jobs: There are no jobs
|