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

2025-07-15 Thread Chet Ramey
On 7/15/25 1:26 PM, Zachary Santer wrote: On Tue, Jul 15, 2025 at 11:39 AM Chet Ramey wrote: On 7/15/25 11:35 AM, Zachary Santer wrote: On Tue, Jul 15, 2025 at 10:29 AM Chet Ramey wrote: With respect to not consulting the list of saved pids if given a list of pid arguments, solving this pr

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

2025-07-15 Thread Zachary Santer
On Tue, Jul 15, 2025 at 11:39 AM Chet Ramey wrote: > > On 7/15/25 11:35 AM, Zachary Santer wrote: > > On Tue, Jul 15, 2025 at 10:29 AM Chet Ramey wrote: > >> > >> With respect to not consulting the list of saved pids if given a list > >> of pid arguments, solving this problem. > > > > I'd like to

Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Félix Hauri
My bad, I did'nt upgraded my source tree! Sorry for the noise! Le Tue, Jul 15, 2025 at 09:58:56AM -0400, Chet Ramey a écrit : > On 7/15/25 7:33 AM, Félix Hauri wrote: > > >var=99;humanizeVar var;echo $var > >90.95T > > looks good, but > >var=99;humanizeVarFact

Re: parser bug in Q_ARITH

2025-07-15 Thread Chet Ramey
On 7/15/25 3:21 AM, Robert Elz wrote: Date:Mon, 14 Jul 2025 15:22:35 -0400 From:Chet Ramey Message-ID: <90a41c5d-c407-4a36-b7b1-21a9201b4...@case.edu> | Say you have something like | | if command; then |declare -i X |X=some-random-expressio

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

2025-07-15 Thread Chet Ramey
On 7/15/25 11:35 AM, Zachary Santer wrote: On Tue, Jul 15, 2025 at 10:29 AM Chet Ramey wrote: With respect to not consulting the list of saved pids if given a list of pid arguments, solving this problem. I'd like to think that's just a stopgap, but yeah, I can play around with that. Why do

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

2025-07-15 Thread Zachary Santer
On Tue, Jul 15, 2025 at 10:29 AM Chet Ramey wrote: > > With respect to not consulting the list of saved pids if given a list > of pid arguments, solving this problem. I'd like to think that's just a stopgap, but yeah, I can play around with that.

Re: sourc. can't handle /sys/block/*/uevent on Linux

2025-07-15 Thread Robert Elz
Date:Tue, 15 Jul 2025 23:17:56 +1000 From:Martin D Kealey Message-ID: | For stat to give an accurate answer, a snapshot of the content would have | to be generated, counted, and discarded, Not at all - simply define the format in such a way that the size is eit

Macro recording lost C-] argument

2025-07-15 Thread A4-Tacks
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=armv8-a -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -DDEFAULT_PATH_VAL

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

2025-07-15 Thread Chet Ramey
On 7/15/25 10:27 AM, Zachary Santer wrote: On Tue, Jul 15, 2025 at 9:46 AM Chet Ramey wrote: Why not just try the patch I attached to the message? Because I'd rather the new POSIX-mode 'wait -n' behavior work correctly? You said the patch reverted the behavior to that of bash 5.2. With res

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

2025-07-15 Thread Zachary Santer
On Tue, Jul 15, 2025 at 9:46 AM Chet Ramey wrote: > > Why not just try the patch I attached to the message? Because I'd rather the new POSIX-mode 'wait -n' behavior work correctly? You said the patch reverted the behavior to that of bash 5.2.

Re: new command dh (dirhistory)

2025-07-15 Thread Chet Ramey
On 7/14/25 7:00 PM, jason stein wrote: Hi Chet, thanks for the suggestion.  I will update the code when I get a chance to make dh a loadable builtin. There are templates in examples/loadables that will get you started. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Chet Ramey
On 7/15/25 7:33 AM, Félix Hauri wrote: var=99;humanizeVar var;echo $var 90.95T looks good, but var=99;humanizeVarFactor=1000 humanizeVar var;echo $var 99.00T should sow '100.00T' instead! That's what I get on macOS. -- ``The lyf so short, the craft so long

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

2025-07-15 Thread Chet Ramey
On 7/15/25 8:22 AM, Zachary Santer wrote: On Tue, Jul 15, 2025 at 6:52 AM Zachary Santer wrote: Alright, that's definitely what's going on. Actually, no. I am having a heck of a time trying to duplicate this behavior any other way. See attached. This is the current tip of the devel branch, 8

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

2025-07-15 Thread Chet Ramey
On 7/15/25 6:52 AM, Zachary Santer wrote: On Mon, Jul 14, 2025 at 10:52 PM John Sidles wrote: I was a pretty big part of that discussion, and this looks broken to me. If 'wait -n' is passed a list of pids, it shouldn't also be waiting for other background processes that weren't passed to it as

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

2025-07-15 Thread Chet Ramey
On 7/14/25 10:52 PM, John Sidles wrote: Prior to bash 5.3, this functionality was provided (even in posix mode) by 'wait -n "${PIDS[@]}";'' ...  this bash idiom worked GREAT. Now, in bash 5.3, this 'wait -n' functionality still works fine ... EXCEPT in posix-mode.  Huh? I sent a patch to fi

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

2025-07-15 Thread Chet Ramey
On 7/14/25 1:32 PM, Robert Elz wrote: Date:Mon, 14 Jul 2025 10:34:12 -0400 From:Chet Ramey Message-ID: <6a02a36f-d31d-4816-8988-5a4ccf960...@case.edu> | The short story is that `wait -n' now returns the status of any process | that's completed and hasn't b

Re: sourc. can't handle /sys/block/*/uevent on Linux

2025-07-15 Thread Martin D Kealey
On Tue, 15 Jul 2025, 03:46 Robert Elz, wrote: > | > This happens because /sys/block/*/uevent show up as regular files, > and > | > reports a file size of 4096 in stat: > | Which isn't the true file size. > > And I'd be reporting that as a kernel bug. But linux seems to be filled with crap

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

2025-07-15 Thread Zachary Santer
On Tue, Jul 15, 2025 at 8:22 AM Zachary Santer wrote: > > I am having a heck of a time trying to duplicate this > behavior any other way. I'm betting this is some kind of bash-internal race condition. Does seem specific to procsub pids in interactive mode, though. zsant@Zack2021HPPavilion MSYS ~/

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

2025-07-15 Thread Zachary Santer
On Tue, Jul 15, 2025 at 6:52 AM Zachary Santer wrote: > > Alright, that's definitely what's going on. Actually, no. I am having a heck of a time trying to duplicate this behavior any other way. See attached. This is the current tip of the devel branch, 80a8f650a1. It has to be commands executed

Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Félix Hauri
Le Wed, Jul 09, 2025 at 09:40:16AM -0400, Chet Ramey a écrit : > On 7/8/25 8:32 PM, Isabella Bosia wrote: > > bash: fltexpr: 1e1: number out of range (error token is "1e1") > > What do you propose? Catch HUGE_VAL/ERANGE and convert to Inf? Far before HUGE numbers, speaking about TERA, the

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

2025-07-15 Thread Greg Wooledge
On Tue, Jul 15, 2025 at 06:52:14 -0400, Zachary Santer wrote: > On Mon, Jul 14, 2025 at 10:52 PM John Sidles wrote: > >> > >> I was a pretty big part of that discussion, and this looks broken to > >> me. If 'wait -n' is passed a list of pids, it shouldn't also be > >> waiting for other background

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

2025-07-15 Thread Zachary Santer
On Mon, Jul 14, 2025 at 10:52 PM John Sidles wrote: >> >> I was a pretty big part of that discussion, and this looks broken to >> me. If 'wait -n' is passed a list of pids, it shouldn't also be >> waiting for other background processes that weren't passed to it as >> arguments. Is that what you're

Re: parser bug in Q_ARITH

2025-07-15 Thread Robert Elz
Date:Mon, 14 Jul 2025 15:22:35 -0400 From:Chet Ramey Message-ID: <90a41c5d-c407-4a36-b7b1-21a9201b4...@case.edu> | Say you have something like | | if command; then | declare -i X | X=some-random-expression | fi | | How does the parser determine