Re: ="${@:...}" and ="${@/...}" join with IFS since after 4.4
From:
Emanuele Torre
Subject:
Re: ="${@:...}" and ="${@/...}" join with IFS since after 4.4
Date:
Sun, 16 Nov 2025 01:47:55 +0100
User-agent:
Mutt/2.2.14 (2025-02-20)
On Sun, Nov 16, 2025 at 01:42:51AM +0100, Emanuele Torre wrote:
> So, while $@, ${@^}, etc. will always use space as they did in bash 4.4-
> bash is not actually as consistent as I initially thought.
I meant to type ${@?} (and ${@-}, ${@+}, ${arr[@]=}) :-(.
${@^}, ${@,}, ${@,,}, etc. behave like ${@/}, and ${@:}:
IFS when quoted, space when not quoted.