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
diff -Nru bash-completion-20080617.2/bash_completion bash-completion-20080617.2+c0.sidux.1/bash_completion
--- bash-completion-20080617.2/bash_completion	2008-06-22 19:47:21.000000000 +0200
+++ bash-completion-20080617.2+c0.sidux.1/bash_completion	2008-06-22 20:45:22.000000000 +0200
@@ -9331,7 +9331,7 @@
 {
 	local IFS cur xspec
 
-	IFS='\t\n'
+	IFS=$'\t\n'
 	COMPREPLY=()
 	cur=`_get_cword`
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to