On Tue, Jul 18, 2023, at 20:58:50 CEST, Lawrence Velázquez wrote:
> Presumably the synopses in all locations should also use this:
>
> -o [option-name]
> +o [option-name]
>
> --
> vq
Far as I can tell, they all already have it. It's just at the very bottom of
the 'set' option li
Add documentation for 'set -o', 'set +o' syntax to 'help set', 'info'.
'set -o'/'set +o' matches the POSIX behavior, but Bash's own documentation
should also mention it.
Phrasing is copied from the manpage, which already mentions it.
---
builtins/set.def | 4
doc/bashref.texi | 5 +
2 fi
Am Dienstag, 27. April 2021, 11:45:44 CEST schrieb Robert Elz:
> Date:Tue, 27 Apr 2021 05:57:40 +
> From: "Beer, Mathis"
> Message-ID: <3024777.xmhlYjkYgV@ka-nl-mbeer>
>
> | Given a background process that has exited before
Given a background process that has exited before the script got to wait -n:
function foo() { return 1; }
foo & FOO_PID=$!
function bar() { sleep 1; }
bar & BAR_PID=$!
sleep 0.1
# should exit with 127 since FOO_PID is non-existent now
wait -n $FOO_PID $BAR_PID
Then wait -n will wait on BAR_PID