[Bash-completion-devel] bash-completion: does not work with vim view files as ~ is expanded

David Paleino d.paleino at gmail.com
Sun May 11 14:35:22 UTC 2008


tags 399903 wontfix
thanks

Hi Kamaraju,

On Wed, 22 Nov 2006 14:20:20 -0500, Kamaraju Kusumanchi wrote:

> If I do
> 
> $ ls ~/<tab>
> 
> it changes as
> 
> $ ls /home/rajulocal/
> 
> Now I enter
> 
> $ ls /home/rajulocal/.vim/view/~=<tab>
> 
> then the command changes as
> 
> $ ls /home/rajulocal/.vim/view/~=/home/rajulocal/.vim/view/~\=+

There you have an error. "=" is a special character for Bash [0], so it must be
properly quoted, or surrounded by '"'.

However, as a "workaround", I suggest you to never type those characters. In
my version of vim, those files are prefixed with "=+", not "~=+", but I
believe that the bug does not reside in tilde expansion. You might want to do
one of the following:

$ ls /home/rajulocal/.vim/view/[TAB]
$ ls /home/rajulocal/.vim/view/\=[TAB]

> thereby making it impossible to list a file named
> /home/rajulocal/.vim/view/~=+temp=+makefile= .
> 
> I would appreciate if you could correct this bug/behavior.

This is not a bug in bash-completion. Please consider proper quoting when
trying to auto-complete such "strange" filenames :)

I'm sorry I can't help any more, but feel free to reply (please keep the team
CCed) if you have any other comment on this.

Kindly,
David

[0] http://tldp.org/LDP/abs/html/comparison-ops.html#EQUALSIGNREF

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   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: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080511/4d4fbac3/attachment.pgp 


More information about the Bash-completion-devel mailing list