Re: Assignment-like word shouldn't be subjected to tilde expansion in POSIX mode

2020-07-20 Thread Robert Elz
Date:Sun, 19 Jul 2020 15:21:07 -0400 From:Chet Ramey Message-ID: <5f066ef0-1fed-ad5b-d564-490268d32...@case.edu> | Maybe, but Posix says this isn't a variable assignment context, as POSIX | defines variable assignments, and technically the shell shouldn't perform

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Rusty Bird
Oğuz: > > For context - I'm filtering a program's stdout and stderr > > (separately), requiring successful exit statuses for the program and > > both filters: > > > > set -u -o pipefail > > { program 2> >(stderr_filter >&2) && wait $!; } | stdout_filter && > > ... > Not sure if pro

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Oğuz
20 Temmuz 2020 Pazartesi tarihinde Rusty Bird yazdı: > Oğuz: > > > For context - I'm filtering a program's stdout and stderr > > > (separately), requiring successful exit statuses for the program and > > > both filters: > > > > > > set -u -o pipefail > > > { program 2> >(stderr_fi

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Rusty Bird
Oğuz: > `>&"$out" is very ugly though, it'd be nice if `{var}' thing worked at > the RHS of redirection operator, like `>&{var}`, which, on bash 5.0.11, > ignores `&' -another bug?- and redirects stdout to a file named `{var}'. Probably more backwards compatibility than a bug - '>&word' (with word

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Chet Ramey
On 7/20/20 1:10 AM, Oğuz wrote: >> Bash Version: 5.0 >> Patch Level: 17 >> Release Status: release >> >> Description: >> $! isn't set to the PID of 'bar' for >> >> foo > >(bar) >> >> if 'foo' is an external program (as opposed to a builtin or >> function) -

Re: Issue with Bash

2020-07-20 Thread Chet Ramey
On 7/20/20 2:32 AM, Rishita Saha16 wrote: > Hi All, >   > From what we have found out, it does not seem like the signal is SIGTTOU. > We are working to find out more about it. Meanwhile, any insight would be > helpful. If the process isn't an interactive shell, it would be helpful to know why it's

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Rusty Bird
Chet Ramey: > >> Description: > >> $! isn't set to the PID of 'bar' for > >> > >> foo > >(bar) > >> > >> if 'foo' is an external program (as opposed to a builtin or > >> function) - unless it's invoked via 'command'. > > Redirections are performed in the sub

Re: Assignment-like word shouldn't be subjected to tilde expansion in POSIX mode

2020-07-20 Thread Chet Ramey
On 7/20/20 4:28 AM, Robert Elz wrote: > Date:Sun, 19 Jul 2020 15:21:07 -0400 > From:Chet Ramey > Message-ID: <5f066ef0-1fed-ad5b-d564-490268d32...@case.edu> > > | Maybe, but Posix says this isn't a variable assignment context, as POSIX > | defines variable assignm

Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command'

2020-07-20 Thread Chet Ramey
On 7/20/20 10:11 AM, Rusty Bird wrote: > Chet Ramey: Description: $! isn't set to the PID of 'bar' for foo > >(bar) if 'foo' is an external program (as opposed to a builtin or function) - unless it's invoked via 'command'. >