On Monday, 23 March 2020 09:44, Harald van Dijk <harald@xxxxxxxxxxx> wrote: > On 23/03/2020 08:20, n8dandy wrote: > This isn't about IFS, this is just because dash does not support the use > of $'\n' to indicate a newline. In dash, $'\n' is equivalent to '$\n' > (in the same way that x'y' is equivalent to 'xy' in all shells). To > portably get a string consisting of a single newline, either put a > literal newline in your source: > > nl=' > ' > > or use command substitutions: > > nl=$(printf '\n.'); nl=${nl%.} > > Currently, $'...' is not part of POSIX (although it has been accepted > for the next version), and dash tends not to add new features that are > not part of the standard. Thanks for your help. Even if $'...' is not POSIX, I thought dash already supports it. I'll stick with IFS= instead. Sincerely