Re: Support ksh93 x=${cmd;}

2025-04-08 Thread Sam James
Cedric Blancher writes: > Good morning! > > Could bash please support x=${cmd;} alongside x=$(cmd)? > > x=$(cmd;} works like x=$(cmd), except that cmd does not run in > a subshell, i.e. the stdout within ${cmd;} is redirected to the > variable "x", but any other changes of variables (global/stati

Re: printf fails in version 5.2.026-3

2024-07-04 Thread Sam James
Daniel Lublin writes: > Apparently the patch needed to fix this was the one Florian Weimer > posted in november 2023, in "C compatibility issue in the configure > script" <8734oqnlou@gentoo.org> (if you don't have the mail history: > https://lists.gnu.org/archive/html/bug-bash/2023-11/msg0010

Re: printf fails in version 5.2.026-3

2024-07-03 Thread Sam James
szige...@delg0.elte.hu writes: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt > -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security > -fs

Re: Enable compgen even when programmable completions are not available?

2023-07-02 Thread Sam James
Chet Ramey writes: > On 6/29/23 11:16 PM, Eli Schwartz wrote: > >> I assume that, given the option exists in the configure script, there >> are people who will want to use the option made available to them. One >> reason might be because they are configuring it for a system that isn't >> fussed

Re: Enable compgen even when programmable completions are not available?

2023-06-26 Thread Sam James
alex xmb ratchev writes: > On Mon, Jun 26, 2023, 11:55 alex xmb ratchev wrote: > >>[snip] > u also really dont need eval at all > > by the way , what does this nonsense code supposed to do >> separate between vars for future list / deletement ? If you read the linked bug, you'd find out.

posix_spawn (or vfork) support?

2023-06-15 Thread Sam James
Hi, Sorry if this has come up before - I did take a look and couldn't find anything. Could bash use posix_spawn/vfork instead of the rather heavyweight fork? I'm aware of the work in `devel` to add nofork comsubs which is very intriguing, but I do wonder about another suggestion: could bash use

Re: [PATCH] Pacify gcc -Wpointer-to-int-cast

2023-03-26 Thread Sam James
Paul Eggert writes: > * lib/sh/random.c (genseed): Use a different type, to pacify GCC > "warning: cast from pointer to integer of different size > [-Wpointer-to-int-cast]" on platforms with 64-bit pointers > and 32-bit int. Thanks for this one. I've been meaning to report it because -Wpointer-

Re: Bash not portable to C23

2023-03-24 Thread Sam James
Chet Ramey writes: > On 3/24/23 1:23 AM, Sam James wrote: > >> I hope so. I'm waiting for a review of an issue in one of its configure >> checks with a strict compiler too [0]. >> [0] >> https://lists.gnu.org/archive/html/bug-bash/2023-02/msg0.html > &

Re: Bash not portable to C23

2023-03-24 Thread Sam James
Paul Eggert writes: > On 3/23/23 18:23, Lawrence Velázquez wrote: >> On Thu, Mar 23, 2023, at 9:16 PM, Paul Eggert wrote: >>> I see that Bash won't compile with a C23 compiler, since it still uses >>> old-style function definitions which C23 no longer supports. Is there >>> any effort and/or int

Re: [PATCH] aclocal.m4: fix -Wimplicit-function-declaration in dup2 check

2023-02-15 Thread Sam James
> On 2 Feb 2023, at 05:46, Sam James wrote: > > dup2 requires a include. Fixes the following when diffing > config.log > when testing with a stricter compiler: > ``` > -warning: call to undeclared function 'dup2'; ISO C99 and later do not > support implicit

[PATCH] aclocal.m4: fix -Wimplicit-function-declaration in dup2 check

2023-02-01 Thread Sam James
dup2 requires a include. Fixes the following when diffing config.log when testing with a stricter compiler: ``` -warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +error: call to undeclared function 'dup

UBSAN error in lib/sh/random.c:79

2023-01-06 Thread Sam James
Hi folks, I'm currently testing common Linux userland with UndefinedBehaviorSanitizer (UBSAN, -fsanitize=undefined). With Bash 5.2_p15, I get the following with this script: ``` $ cat /tmp/guess_suffix guess_suffix() { tmpdir="${TMPDIR}"/.ecompress$$.${RANDOM} } guess_suffix ``` It seem

Re: Bash-5.2 official patch 9

2022-11-14 Thread Sam James
> On 14 Nov 2022, at 20:03, Chet Ramey wrote: > > On 11/12/22 4:39 AM, Kerin Millar wrote: >> On Tue, 8 Nov 2022 09:50:51 -0500 >> Chet Ramey wrote: >>> BASH PATCH REPORT >>> = >>> >>> Bash-Release: 5.2 >>> Patch-ID: bash52-009 >> Are there any plans to backport the "f

Re: Crash with 5.2 beta in compgen

2022-04-16 Thread Sam James
> On 16 Apr 2022, at 17:11, Chet Ramey wrote: > > On 4/16/22 1:45 AM, Sam James wrote: > >> Bash Version: 5.2 >> Patch Level: 0 >> Release Status: beta >> Description: >> Bash crashes when running compgen -c -X a. >>

Crash with 5.2 beta in compgen

2022-04-15 Thread Sam James
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -O2 -pipe -march=native -ggdb3 uname output: Linux 2021-10-24 5.15.34-gentoo-dist-hardened #1 SMP Sat Apr 16 02:20:51 BST 2022 x86_64 AMD Ryzen 9

Request for new 5.2 alpha?

2022-03-21 Thread Sam James
Hi, Is there a plan for a 2nd 5.2 alpha? A number of reported bugs have been addressed since and it may help resolve duplicates. Best, sam signature.asc Description: Message signed with OpenPGP

Re: Bash-5.2-alpha available

2022-01-22 Thread Sam James
> On 22 Jan 2022, at 18:52, Oğuz wrote: > 22 Ocak 2022 Cumartesi tarihinde Chet Ramey yazdı: >> Because they should behave identically to other forms of quoting that bash >> handles in here-documents. Why should $'' be different from '' only within >> here-document bodies? > Because it'd be use