[Bash-completion-devel] Bug#630521: Bug#630521: bash-completion: no longer completes files for vi
David Paleino
dapal at debian.org
Tue Jun 14 19:20:24 UTC 2011
tags 630521 unreproducible moreinfo
thanks
Hello,
On Tue, 14 Jun 2011 21:05:07 +0200, Michal Suchanek wrote:
> This is a regression, it used to be possible to complete pretty much any
> file. Now only directories are completed for vi, or some very unusual
> files I don't have.
>
> To fix this I had to comment out the line
>
> complete -f -X
> '*.@(o|so|so.!(conf)|a|[rs]pm|gif|jp?(e)g|mp6|mp?(e)g|avi|asf|ogg|class)'
> vi vim gvim rvim view rview rgvim rgview gview emacs xemacs sxemacs kate
> kwrite
>
> I am not sure what it is supposed to do but it definitely breaks editor
> completion making them totally unusable from bash.
"vi" completes on practically anything here.
That line is supposed to *exclude* those files from being completed (so that,
if you have a foo.gif, it doesn't appear as a completion for those commands).
Can you please do a 'set -x', then 'vi <TAB>', and copy-paste the output here?
Thanks,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20110614/d74a8d1b/attachment-0001.pgp>
More information about the Bash-completion-devel
mailing list