SIGINT not breaking loop with non-list function body

2023-04-19 Thread Grisha Levit
If an interactive shell line is just a single loop and the body of the loop consists only of a function name, and the function body is not a list, ^C does not cause the loop to break as it otherwise would. $ f() { cat; } $ while :; do f; done ^C The code in wait_for() checks the values of loop_le

Re: segfault on initial word completion

2023-04-19 Thread Chet Ramey
On 4/18/23 6:15 PM, Grisha Levit wrote: $ bash --rcfile <(echo 'complete -C: -I') -i <<<$'; \cA\t' bash-5.2$ bash: xmalloc: cannot allocate 18446744073709551615 bytes $ bash --rcfile <(echo 'complete -C: -I') -i <<<$';\cA \t' bash-5.2$ Segmentation fault: 11 Thanks for the report. -- ``The l