[Bash-completion-devel] Bug#487571: bash-completion: fails to complete vim /et[tab]

Stefan Lippers-Hollmann s.L-H at gmx.de
Sun Jun 22 18:49:19 UTC 2008


Package: bash-completion
Version: 20080617.2
Severity: normal

Hi

There seems to be another issue in bash-completion 20080617.2 with 
expanding arguments for "vim /et[tab]".

$ bash -x
$ vim /et+ local IFS cur xspec
+ IFS='\t\n'
+ COMPREPLY=()
++ _get_cword
++ local i
++ local LC_CTYPE=C
++ local 'WORDBREAKS=
"'\''><=;|&(:'
++ '[' -n ']'
++ (( i=0 ))
++ (( i<0 ))
++ local 'cur=vim /et'
++ local 'tmp=vim /et'
+++ expr 'vim /et' : '.*[
"'\''><=;|&(:]'
++ local word_start=4
++ '[' 4 -ge 2 ']'
++ local char=m
++ '[' m '!=' '\' ']'
++ break
++ cur=/et
++ echo /et
+ cur=/et
+ _expand
+ '[' /et '!=' /et ']'
+ [[ /et == \~*/* ]]
+ [[ /et == \~* ]]
++ sed -ne '/^complete .*[      ]vim\([         ]\|$\)/{p;q;}' /e c/bash_comple io
sed: can't read /e: No such file or directory
sed: can't read c/bash_comple: No such file or directory
sed: can't read io: No such file or directory
+ xspec=
+ xspec=
+ xspec=
+ COMPREPLY=($( eval compgen -f -X "$xspec" --              \"${cur#[\`\"\']}\" 2>/dev/null ) $( compgen -d -- $cur ))
++ eval compgen -f -X '' -- '"/e' '"'
++ compgen -d -- /e

The attached patch fixes this for me.

Regards
	Stefan Lippers-Hollmann

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-7.slh.2-sidux-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash                          3.2-4      The GNU Bourne Again SHell
ii  ucf                           3.007      Update Configuration File: preserv

bash-completion recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash-completion_20080617.2_filedir_xspec.diff
Type: text/x-diff
Size: 396 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080622/673b614c/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080622/673b614c/attachment.pgp 


More information about the Bash-completion-devel mailing list