Re: return from trap while reading with readline breaks completion

2024-08-10 Thread Chet Ramey
On 8/6/24 4:19 AM, Oğuz wrote: See: $ ls foo s $ cat s trap return INT read -e $ source s I press Ctrl-C here and bash prompts me for the next command. Then I press F and Tab; instead of producing the bell sound bash completes f to foo. If I press Ctrl-C again it prints "bash: return: can only

return from trap while reading with readline breaks completion

2024-08-06 Thread Oğuz
See: $ ls foo s $ cat s trap return INT read -e $ source s I press Ctrl-C here and bash prompts me for the next command. Then I press F and Tab; instead of producing the bell sound bash completes f to foo. If I press Ctrl-C again it prints "bash: return: can only `return' from a function or sour