Re: Substring Expansion doesn't respect IFS when using in Heredoc

2022-09-02 Thread Chet Ramey
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

[PATCH] Calling `trap xxx INT' in completion functions of `complete -F' leaves readline in a strange state

2022-09-02 Thread Koichi Murase
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