pathological bash-malloc behaviour

2023-08-18 Thread Sergei Trofimovich
Hi bash developers! I think I encountered an unusual pathological behaviour of `bash-malloc`. I have a directory with ~500_000 files and directories in it. I tried to iterate through it with a single `for` loop using `*` glob and noticed that glob expansion takes more time that actual loop payload

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

2023-07-25 Thread Sergei Trofimovich
On Tue, 25 Jul 2023 10:12:23 -0400 Chet Ramey wrote: > On 7/24/23 6:33 PM, Sergei Trofimovich wrote: > > 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 paralle

[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: 'exec -a' and $0 substitution

2023-01-26 Thread Sergei Trofimovich
On Thu, 26 Jan 2023 00:35:27 -0500 Lawrence Velázquez wrote: > On Wed, Jan 25, 2023, at 6:37 PM, Sergei Trofimovich wrote: > > I fear it's a side-effect of the way 'bash' gets executed via shebang by > > kernel. But maybe not? Somehow direct script execution

'exec -a' and $0 substitution

2023-01-25 Thread Sergei Trofimovich
Hello bash maintainers! nixpkgs package collection likes to wrap binaies and shell scripts to pass extra environment variables via wrappers. One example is dejagnu's runtest: $ cat `which runtest` | unnix #! /<>/bash-5.2-p15/bin/bash -e PATH=... export PATH exec -a "$0" "/<>/d