help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash bug?


From: Po Lu
Subject: Bash bug?
Date: Tue, 24 Jan 2023 18:27:28 +0800

mapfile "-d " -t FOO <<<"1 2 3" ; for i in "${FOO[@]}"; do echo
"x${i}x"; done

gives:

x1x
x2x
x3
x

but since I specified -t, I would have expected that the delimiter be
removed from the end of each delimited input ``line''.

Is this a bug? If not, how do I do what I want?

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]