bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)


From: Chet Ramey
Subject: Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)
Date: Wed, 16 Jul 2025 10:33:19 -0400
User-agent: Mozilla Thunderbird

On 7/16/25 10:16 AM, John Sidles wrote:
Please let me thank everyone for their kind attention and thoughtful remarks on this problem ... I am struggling however to summarize the discussion so far ... specifically in regard to workarounds.  To date, the sole suggested workaround is:

The fix for your case is to insert `wait' without arguments after the call to mapfile and before the sleep.
    That way you ensure that the 'wait -n' waits for the sleep process.


Hmmm ... yes, the suggested workaround does patch the minimal working example (MWE).  But it is NOT a general-purpose workaround.

Correct. As I wrote yesterday,

"The workaround I suggested works for the example script because the extra
`wait' discards the contents of the bgpids list, leaving nothing to return
even if the code checks for it. It's something you can put in a script
immediately, if it's appropriate, while you wait for me to release a patch
the distros will accept."

There is no other workaround. You can use the patch I sent with my first
reply to you on your own version of bash, but it will take a couple of days
for me to get through release engineering a patch and getting it tested
and distributed. Distros, including homebrew and macports, often do their
own testing before incorporating patches into their versions. I don't know
how long that will take.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]