[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $* within a here-document puts space instead of the first IFS char.
From: |
Grisha Levit |
Subject: |
Re: $* within a here-document puts space instead of the first IFS char. |
Date: |
Fri, 16 Feb 2024 22:41:47 -0500 |
On Fri, Feb 16, 2024 at 9:02 PM Damien ISSANCHOU <d.issanchou@gmail.com> wrote:
> When expanding $* within a here-document, bash puts a space between
> each positional parameters while I would expect it to put the first
> character of the IFS variable (if it contains at least one character) as
> per POSIX.1-2017.
FYI, this seems to be the same issue as reported in
https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00002.html
And the devel branch has exactly the fix the you propose:
https://git.savannah.gnu.org/cgit/bash.git/tree/subst.c?h=devel&id=e1dd98a1d#n10513