Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18962 - [bash-completion] tab completion doesn't work properly if both ' and space in file name

Attached to Project: Arch Linux
Opened by Jonathan M Davis (Vasher) - Monday, 05 April 2010, 05:09 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 04 August 2010, 19:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Bash completion doesn't work properly with both ' and a space in a file name. If I have the files

joes\ dog
joes\ frog

then tab completion works fine. It will tab complete past the space and then list both files if you hit tab. If you have

joe\'s_dog
joe\'s_frog

it will also tab complete just fine. However, if you have

joe\'s\ dog
joe\'s\ frog

then it fails to tab complete correctly. It will tab complete past the space, but after that, tab does nothing. It won't list the two files, and even if you enter the next letter - uniquely indentifying which file you mean so that tab completion should be able to complete correctly - it still fails to complete the name.

If you have the file names

joe\ s\'dog
joe\ s\'frog

then it will tab complete past the ' and correctly list the possible files, but if you enter another letter, it won't complete the file name. Tab ceases to do anything.

So, it looks like the combination of space and ' in a file name screws up whatever regular expression is being used for the tab completion.

bash version: 4.1.002-2
bash-completion version: 1.1-3
This task depends upon

Closed by  Eric Belanger (Snowman)
Wednesday, 04 August 2010, 19:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in bash-completion 1.2-1

Loading...