On 3/11/21 3:55 PM, Michael Felt (aixtools) wrote:
Sent from my iPhone
On 11 Mar 2021, at 18:15, Chet Ramey <chet.ra...@case.edu> wrote:
On 3/11/21 11:28 AM, Michael Felt wrote:
Hi,
Issue: AdoptOpenJDK build process makes bash calls in a particular way. An
abbreviated (shorter pathnames) example is:
```
bash-5.0$ /usr/bin/printf "Building targets 'product-images legacy-jre-image test-image' in
configuration 'aix-ppc64-normal-server-release'\n" > >(/usr/bin/tee -a /home/aixtools/build.log)
2> >(/usr/bin/tee -a /home/aixtools/build.log >&2)
Building targets 'product-images legacy-jre-image test-image' in configuration
'aix-ppc64-normal-server-release'
I believe this is fixed in bash-5.1.
Would it be difficult to give me a hint for 5.0. I could test further now i
have a command that generates the issue.
I can't reproduce it, but you can look at unlink_all_fifos() in bash-5.1.
It's defined in subst.c and called in shell.c.
Probably because the process substitution does not exit before the shell does.
I was hoping that is what the wait routines were for. Also noticed that the
second fifo never gets a pid.
Bash doesn't wait for asynchronous processes before it exits unless you use
`wait'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/