#803220 bash: tab completion of file names containing newline is broken

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Tzafrir Cohen
Date:
2015-10-28 05:03:05 UTC
Severity:
minor
#803220#5
Date:
2015-10-28 04:48:11 UTC
From:
To:
Dear Maintainer,

Tab completion seems to work fine for file names with special
characters. Except with newlines:

touch "$(echo -e 'a\ttab')"
touch "$(echo -e 'with-a\rcr')"
touch "$(echo -e 'but-a\nnl')"

Tab completion works fine for the first two files. But for the last one
I get:

$ echo b<tab><tab>
but-a  nl

$ echo bu<tab><tab>
but-a  nl

and so forth.

I tried '\echo' instead, just in case this is cased by a broken
completion function. But I get the same result.

I'll just note that this is a minor issue I never actually ran into in
"real life".