[Bash-completion-devel] Bug#616018: Bug#616018: bash_completion adds a space at the end of every diretory name, and other issues with completing (e.g. sudo)

Robert C. Helling helling at lmu.de
Tue Mar 22 17:14:43 UTC 2011


On Tue, 22 Mar 2011, David Paleino wrote:

> On Tue, 22 Mar 2011 17:22:32 +0100, Robert Helling wrote:
>
>> It seems that lines 11/12
>>
>>     COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -f -X "$xspec" -- "$cur" ) \
>>             $( compgen -d -- "$cur" ) )
>>
>> are the offenders. Unfortunately, this looks like line noise to me...
>
> Robert,
> please read Ville's message
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616018#10
>
> It's probably acroread's completion fault.

I was referring to that mail. The two lines I quoted are from 
/etc/bash_completion.d/acroread.sh

I just figured I need to comment out those two lines for the bug to go 
away for me. It is my understanding, that acroread is not run, it is just 
the file that handles completions for lines starting with

$ acroread ...

But the bug occurs also for

$ ls /e[TAB]

as this is wrongly completed to

$ ls /etc[SPACE]

rather than

$ ls /etc/

I would be surprised if the bug is not in those two lines somehow but in 
acroread itself.

Just my $.02

Robert

-- 
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                       Scientific Coordinator
 		      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
     stupid .sig\n";   http://www.atdotde.de





More information about the Bash-completion-devel mailing list