Re: SIGINT not breaking loop with non-list function body

2023-04-20 Thread Chet Ramey
On 4/19/23 4:55 PM, Grisha Levit wrote: 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. Thanks for the report. This code in wait_for se

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