Re: [PATCH] fix consistency issues in set_program_name()

2025-01-13 Thread Bruno Haible via Gnulib discussion list
Pádraig Brady wrote: > > Can you describe the circumstances where you observed the discrepancy? > > It impacts the tests when we `./configure --enable-single-binary=shebangs`. Oh, I see. In this case, 'cp' for example is an executable script #!/bin/coreutils --coreutils-prog-shebang=cp This c

Re: [PATCH] fix consistency issues in set_program_name()

2025-01-12 Thread Bruno Haible via Gnulib discussion list
Pádraig Brady wrote: > Updated version attached. This patch looks good. Bruno

Re: [PATCH] fix consistency issues in set_program_name()

2025-01-12 Thread Pádraig Brady
On 12/01/2025 18:40, Bruno Haible wrote: Hi Pádraig, I noticed a discrepancy in the program name output by error(), which looks to be due to whether the gnulib or glibc version is used. If we use gnulib's error() it uses getprogname() which defaults to program_invocation_short_name. The glibc e

Re: [PATCH] fix consistency issues in set_program_name()

2025-01-12 Thread Bruno Haible via Gnulib discussion list
Hi Pádraig, > I noticed a discrepancy in the program name output by error(), > which looks to be due to whether the gnulib or glibc version is used. > If we use gnulib's error() it uses getprogname() > which defaults to program_invocation_short_name. > The glibc error() instead uses program_invoca