Arch Linux

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!
Tasklist

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
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:
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
Comment by Anish Bhatt (anish) - Monday, 29 June 2009, 08:48 GMT
I'm using bash4 from testing. The bash-completion package from extra works just fine for me.
Comment by Aaron Griffin (phrakture) - Monday, 29 June 2009, 16:30 GMT
This works fine for me...

$ 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)
Comment by Anish Bhatt (anish) - Monday, 29 June 2009, 17:03 GMT
I am making sure I'm trying autocomplete for the right file types.

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 ?
Comment by Aaron Griffin (phrakture) - Monday, 29 June 2009, 17:09 GMT
If it's special characters, it may be related to  FS#15310 

And yes, the above fails too...
Comment by Aaron Griffin (phrakture) - Monday, 29 June 2009, 17:56 GMT
Please check 1.0-2 from testing
Comment by Anish Bhatt (anish) - Monday, 29 June 2009, 18:04 GMT
can't see 1.0-2 in testing, status page only shows 1.0-1, so do the repos
Comment by Anish Bhatt (anish) - Monday, 29 June 2009, 21:38 GMT
fixed in 1.0-2

Loading...