bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

return from trap while reading with readline breaks completion


From: Oğuz
Subject: return from trap while reading with readline breaks completion
Date: Tue, 6 Aug 2024 11:19:18 +0300

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 sourced script" and completion returns to
normal.

Oğuz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]