#1026340 bash: brace ({a..z}) expansion uninterruptible

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
наб
Date:
2024-04-15 11:42:03 UTC
Severity:
normal
Tags:
#1026340#5
Date:
2022-12-18 19:28:33 UTC
From:
To:
Dear Maintainer,

I, foolishly, did echo {a..z}{a..z}{a..z}{a..z}{a..z}{a..z}{a..z}{a..z}.
This, naturally, hung, as bash started to generate 26^8=208827064576
elements. This is expected.

What's /not/ expected is that I /could not/ interrupt this expansion,
be it with intr or quit. I killed bash from another teletype when it
threatened to start evicting my caches when it reached 80G RSS.

Please make brace expansion interruptible.

Best,
наб