On 9/1/22 12:54 PM, Aloxaf Yin wrote:
Hello, I encountered something strange when using bash. It seems like a bug
so someone suggested that I ask here.
Here is the test code.
declare -a arr=(12 34 56 78 90)
IFS=','
cat <<<"${arr[*]:0}"
cat <
It does seem strange. Here-doc
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/us