Package: bash
Version: 5.0-4
Severity: normal
To reproduce:
- Go into some directory with write permissions (eg /tmp)
- do # mkdir foo bar bar/boz bar/baz-$'\n'.
- do # cd foo
- enter 'ls -la ../ba' and press <tab> to complete entries in there
Expected result:
I get a list of entries, with "boz" and "baz-?" to choose from.
Actual result:
<tab> removes the whole parameter, and I end up with "ls -la .".
I know that a newline in a filename is a bad thing (I had a bug in a
"find -printf" line ;), but still it shouldn't break that way.
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug'), (500,
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.0.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8),
LANGUAGE=de_AT:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bash depends on:
ii base-files 10.3
ii debianutils 4.8.6.1
ii libc6 2.28-10
ii libtinfo6 6.1+20181013-2
Versions of packages bash recommends:
ii bash-completion 1:2.8-6
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information