Re: aliases sometimes not expanded even with expand_aliases set

2024-10-17 Thread Chet Ramey
On 10/16/24 7:34 PM, Ian Dall wrote: Thanks for that. It is certainly confusing that you can do "alias -p" inside the compound statement and have it print out the alias you think you have defined, but not have it work. By the time the alias command executes, and prints the alias definition,

Re: 'wait -n' with and without id arguments

2024-10-17 Thread Chet Ramey
On 9/22/24 1:48 PM, Zachary Santer wrote: If you're not going to make 'wait -n' without id arguments pull something from the bgp list, then the 'set -o posix' notification behavior ought to be made the default behavior, yeah. I think keeping posix mode behavior is fine. Like `set -b'? Yeah,

Re: 'wait -n' with and without id arguments

2024-10-17 Thread #!microsuxx
is there plans to add / handle multiple redirection-procs in one cmd in the jobs table On Thu, Oct 17, 2024, 23:15 Chet Ramey wrote: > On 9/22/24 1:48 PM, Zachary Santer wrote: > > If you're not going to make 'wait -n' without id > > arguments pull something from the bgp list, then the 'set -o p

IFS whitespace definition

2024-10-17 Thread Greg Wooledge
This issue came up on the Libera #bash IRC channel today: Between bash 4.4 and 5.0, the definition of "IFS whitespace" has apparently been expanded: hobbit:~$ bash-4.4 hobbit:~$ ( s=$'a\r\r\rb'; IFS=$'\r' read -ra a <<< "$s"; declare -p a ) declare -a a=([0]="a" [1]="" [2]="" [3]="b") hobbit:~$ e

Re: 'wait -n' with and without id arguments

2024-10-17 Thread Chet Ramey
On 9/29/24 12:55 PM, Zachary Santer wrote: CWRU/CWRU.chlog: 9/25 jobs.c - wait_for_any_job: if the jobs table is empty and there are no eligible procsubs, and the shell is in posix mode, take a random pid from the bgpids table, delete it, and return its status (since we wou

Re: 'wait -n' with and without id arguments

2024-10-17 Thread Chet Ramey
On 10/17/24 5:40 PM, #!microsuxx wrote: is there plans to add / handle multiple redirection-procs in one cmd in the jobs table What does this mean? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU

recent typo in sig.c breaks Minix compilation

2024-10-17 Thread Martin D Kealey
It looks like a recent (last year) typo in sig.c breaks Minix compilation: $ git log a61ffa78ed^! > commit a61ffa78ede6df4d1127fddd2e8a1a77a7186ea1 > Author: Chet Ramey > Date: 2023-01-03 10:23:11 -0500 > second set of ANSI C changes: C89-style function declarations, more > inline functions

[PATCH] histfile: fix mmap page alignment

2024-10-17 Thread Grisha Levit
The mmap in history_do_write would usually fail when appending because the offset must be a multiple of the page size. --- lib/readline/histfile.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/readline/histfile.c b/lib/readline/histfile.c index a5fb11d2..

Re: recent typo in sig.c breaks Minix compilation

2024-10-17 Thread Oğuz
On Friday, October 18, 2024, Martin D Kealey wrote: > > Talking of which, I note several places where there's a construct like: > > #ifdef FOO > > if (foo && zot) > > #else > > if (zot) > > #endif > > > Unfortunately this confuses both the indent program and some editors. > It looks a lot cleaner

[PATCH] rl_tilde_expand: avoid uninitialized memory use

2024-10-17 Thread Grisha Levit
$ bash --norc -in <<< $'\e&' WARNING: MemorySanitizer: use-of-uninitialized-value #0 rl_tilde_expand lib/readline/util.c:208:10 --- lib/readline/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/readline/util.c b/lib/readline/util.c index 2bcc776a..d03

Re: IFS whitespace definition

2024-10-17 Thread Robert Elz
Date:Thu, 17 Oct 2024 18:44:59 -0400 From:Greg Wooledge Message-ID: | Between bash 4.4 and 5.0, the definition of "IFS whitespace" has apparently | been expanded: Not going to comment on bash, or its manual, specifically, but the standard allows anything that th

Re: 'wait -n' with and without id arguments

2024-10-17 Thread Robert Elz
Date:Thu, 17 Oct 2024 17:14:52 -0400 From:Chet Ramey Message-ID: <9d279d7f-ea94-4f75-9a52-059f6d2b9...@case.edu> | > Maybe those defenders can elucidate what purpose that behavior | > would serve. | | kre's on the list, maybe he'll speak up. Sorry, I largely