[PATCH] Makefile.in: add missing intl dependency for unwind_prot.o

2023-07-24 Thread Sergei Trofimovich
As reported by Robert Scott in https://github.com/NixOS/nixpkgs/pull/245066 without the change `make -j8` build of `make` occasionally fails to buildin parallel. The simplest reproducer is: $$ ./configure $$ make unwind_prot.o ... In file included from unwind_prot.c:51: In file

Re: slash appended to tab so its two // at end

2023-07-24 Thread Chet Ramey
On 7/24/23 2:57 PM, alex xmb ratchev wrote: partly cosmetic its not foo/ and foo/// will yield different paths Completely cosmetic. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.ed

Re: slash appended to tab so its two // at end

2023-07-24 Thread alex xmb ratchev
On Mon, Jul 24, 2023, 7:30 PM Chet Ramey wrote: > On 7/19/23 1:44 PM, Grisha Levit wrote: > > On Wed, Jul 19, 2023 at 12:57 PM Grisha Levit > wrote: > >> Also I think this is not a bug -- readline is asked to append a slash > >> to directory names and it does so. > > > > It's easy enough to avoi

Re: [PATCH] fix bind -X quoting

2023-07-24 Thread alex xmb ratchev
On Mon, Jul 24, 2023, 7:13 PM Chet Ramey wrote: > On 7/19/23 12:47 PM, Grisha Levit wrote: > > On Wed, Jul 19, 2023 at 10:47 AM Chet Ramey wrote: > >> Thanks for the report. It seems like your patch is incomplete, though. > >> After applying it: > >> > >> $ bind -x '"\eX": echo "x"' > >> $ bind

Re: slash appended to tab so its two // at end

2023-07-24 Thread Chet Ramey
On 7/19/23 1:44 PM, Grisha Levit wrote: On Wed, Jul 19, 2023 at 12:57 PM Grisha Levit wrote: Also I think this is not a bug -- readline is asked to append a slash to directory names and it does so. It's easy enough to avoid printing the indicator slash if we just printed a path already ending

Re: segfault in for(()) loop

2023-07-24 Thread Chet Ramey
On 7/24/23 11:58 AM, vc--- via Bug reports for the GNU Bourne Again SHell wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: Segmentation fault in 'for ((...))' loop Repeat-By: z='';for((;$z;));do echo;done without spaces in ;$z; in b

Re: [PATCH] fix bind -X quoting

2023-07-24 Thread Chet Ramey
On 7/19/23 12:47 PM, Grisha Levit wrote: On Wed, Jul 19, 2023 at 10:47 AM Chet Ramey wrote: Thanks for the report. It seems like your patch is incomplete, though. After applying it: $ bind -x '"\eX": echo "x"' $ bind -X "\eX": "echo "x"" We probably need to suppress printing the double quotes

segfault in for(()) loop

2023-07-24 Thread vc--- via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: amd64 OS: freebsd13.1 Compiler: cc Compilation CFLAGS: -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing uname output: FreeBSD delta.hostmaster.ua 13.1-RELEASE-p5 FreeBS

Re: fg tcsetpgrp() SIGTTIN/SIGTTOU race

2023-07-24 Thread Chet Ramey
On 7/18/23 11:50 PM, Earl Chew wrote: Interestingly dash/ash does not exhibit this behaviour. Looking at the implementation since 1994 shows that it issues SIGCONT unconditionally after TIOCSPGRP: https://svnweb.freebsd.org/base/head/bin/sh/jobs.c?revision=1556&view=markup#l175 https://svnweb.

Re: [Documentation] Parameter expansion: missing colon in example

2023-07-24 Thread Chet Ramey
On 7/21/23 2:37 PM, private--- via Bug reports for the GNU Bourne Again SHell wrote: Hello, The example on parameter expansion[1] should perhaps read : $ echo ${v:-unset} instead of : $ echo ${v-unset} There should probably be more examples showing the differences between the - and :- oper

Re: [PATCH] normalization tweaks for macOS

2023-07-24 Thread Chet Ramey
On 7/20/23 7:52 PM, Grisha Levit wrote: I wonder if you'd be interested in changes to the function that would skip escaping ASCII characters that aren't glob-special as well. I _think_ it would just be a slight variation of the code that already does this for regexes but I haven't thought about