FS#15312 - [bash-completion] in testing broken with common filename prefixes.
Attached to Project:
Arch Linux
Opened by Anish Bhatt (anish) - Monday, 29 June 2009, 08:38 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 29 June 2009, 21:48 GMT
Opened by Anish Bhatt (anish) - Monday, 29 June 2009, 08:38 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 29 June 2009, 21:48 GMT
|
Details
Description:
Bash completion in testing (1.0-1) is broken when it comes to completing file names. Additional info: * package version(s) 1.0-1 * config and/or log files etc. Steps to reproduce: Try to use tab to autocomplete when n files exist with a common prefix. The prefix is autocomplete, but the rest of the filename is ignored. eg. there are 3 files xyz-1a,xyz-2b,xyz-3c respectively. typing "x" and pressing tab will result in "xyz-" being autocompleted. Now if you type 1,2 or 3 after that, autocomplete does nothing. i.e. "xyz-1" followed by tab will have no action, xyz-1a is not autocompleted. Not fully sure how to debug this, but I can get more info if needed |
This task depends upon
Closed by Aaron Griffin (phrakture)
Monday, 29 June 2009, 21:48 GMT
Reason for closing: Fixed
Additional comments about closing: In 1.0-2
Monday, 29 June 2009, 21:48 GMT
Reason for closing: Fixed
Additional comments about closing: In 1.0-2
$ pacman -Qi bash bash-completion
Name : bash
Version : 4.0.024-1
Name : bash-completion
Version : 1.0-1
$ cd foo
$ touch abc-{1,2,3}.foobar
$ ls <tab>
$ ls abc-1<tab>
$ ls abc-1.foobar
What command are you using for completion? bash completion completes files differently based on the command you are using. For instance, using "gunzip <tab>" will complete nothing in this dir because none of the files have the right extension (.gz)
that example works for me. However the following fail :
touch zxd-\ {1,2,3}.foobar
touch fd*{1,2,3}.foobar
touch ab={1,2,3}.foobar
Problem handling special characters maybe ?
FS#15310And yes, the above fails too...