Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#39086 - [bash-completion] tab completion of file names starting with '[' files for bash-4.3
Attached to Project:
Arch Linux
Opened by Allan McRae (Allan) - Saturday, 01 March 2014, 03:39 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 20 March 2014, 04:30 GMT
Opened by Allan McRae (Allan) - Saturday, 01 March 2014, 03:39 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 20 March 2014, 04:30 GMT
|
DetailsDo:
touch '[foobar]' rm \[<tab> and notice the lack of anything occurring. |
This task depends upon
Closed by Eric Belanger (Snowman)
Thursday, 20 March 2014, 04:30 GMT
Reason for closing: Fixed
Additional comments about closing: bash-completion 2.1-3
Thursday, 20 March 2014, 04:30 GMT
Reason for closing: Fixed
Additional comments about closing: bash-completion 2.1-3
"ls \[" only show folders, no files
greetings
$ bash42 -c "printf '%q\n' '~/.'"
~/.
$ bash43 -c "printf '%q\n' '~/.'"
\~/.
This is a bugfix in bash 4.3. I guess bash_completion needs to deal with this somehow in _quote_readline_by_ref
The square brace expansion issue is a little more confusing to me, but I've been able to reduce it down to the difference between the result of:
$ compgen -f -X '' -- \\\[
Assuming that a file such as '[foo' exists. Oddly, in bash 4.3, this will yield a match, whereas in bash 4.2, it will not. This seems more like it might be a bug in bash, not bash_completion.
bash-completion 2.1-3 works