Re: [PATCH] Add missing docs for 'set +o', 'set -o'

2023-07-19 Thread Beer, Mathis
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

[PATCH] Add missing docs for 'set +o', 'set -o'

2023-07-18 Thread Beer, Mathis
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

Re: wait -n ignores invalid pids when valid pids are listed (solved!)

2021-04-27 Thread Beer, Mathis
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

wait -n ignores invalid pids when valid pids are listed

2021-04-27 Thread Beer, Mathis
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