FS#15310 - [bash-completion] can not handle files with spaces in name

Attached to Project: Arch Linux
Opened by Ivan Yurasov (vanDake) - Monday, 29 June 2009, 07:57 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 30 June 2009, 06:57 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In latest testing/bash-completion bash can not handle file with spaces in name.
It's kind of regression because in previous version completion worked properly.



Steps to reproduce:
bash-completion-1.0-1-i686.pkg.tar.gz:
$ ls file*
file 1 1 file 2 2 file 3 3
$ ls file\ 1<TAB><TAB>
(nothing)

bash-completion-20060301-9-i686.pkg.tar.gz:
$ ls file*
file 1 1 file 2 2 file 3 3
$ ls file\ 1<TAB><TAB>
$ ls file\ 1\ 1
(it work)
This task depends upon

Closed by  Aaron Griffin (phrakture)
Tuesday, 30 June 2009, 06:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  In 1.0-2
Comment by Rick Chen (stuffcorpse) - Monday, 29 June 2009, 15:46 GMT
You can try using my bash-completion-git in AUR. It works for me.
Comment by Ivan Yurasov (vanDake) - Monday, 29 June 2009, 16:02 GMT
bash-completion-git work for me
Comment by Aaron Griffin (phrakture) - Monday, 29 June 2009, 16:32 GMT
Hmmm can someone try to diff the two and find the issue? I would be more than happy to patch the bash-completion in testing to support this.

Also, confirmed here. The first completion works, but subsequent completions fail
Comment by Rick Chen (stuffcorpse) - Monday, 29 June 2009, 17:39 GMT
It seems commit 1421e55aac075e13491cd212b796bdd453214a2c was the fix. Patch attached.
Comment by Aaron Griffin (phrakture) - Monday, 29 June 2009, 17:56 GMT
Please check 1.0-2 from testing
Comment by Ivan Yurasov (vanDake) - Tuesday, 30 June 2009, 04:06 GMT
1.0-2 work for me

Loading...