diff options
Diffstat (limited to 'tests/jobs5.sub')
-rw-r--r-- | tests/jobs5.sub | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/jobs5.sub b/tests/jobs5.sub new file mode 100644 index 0000000..35d3981 --- /dev/null +++ b/tests/jobs5.sub @@ -0,0 +1,12 @@ +# framework to test new `wait -n' option that waits for any job to finish + +set -m + +sleep 20 & +{ sleep 5; exit 12; } & +sleep 20 & + +wait -n +echo $? + +jobs |