[Bash-completion-devel] ./current r1326: Improved strace completion, undefined _command_offset() found.
Guillaume Rousse
Guillaume.Rousse at inria.fr
Mon Feb 9 22:25:02 UTC 2009
Guillaume Rousse a écrit :
> Freddy Vulto a écrit :
>> Hello Guillaume,
>>
>> I can't reproduce your problem, maybe it's distribution specific?
>> I've tried on Debian 4.0 with latest bash-completion from bzr and
>> `sudo vim <TAB>' and `sudo chown <TAB>' run fine.
> Strange. Using trunk directly, without any mandriva-specific patches, it
> does just echo '\' characters:
> sudo vim <TAB> -> sudo vim \ \
> sudo chown <TAB> -> sudo chown \
It was a bug in mandriva bash package, caused by a Fedora patch, actually :)
This patch (https://bugzilla.redhat.com/show_bug.cgi?id=475229) messes
with internal completion handling, and introduce spaces and carriage
return into spec strings, as demonstrated by this output when trying to
complete on 'sudo chown <TAB>':
+ cmd=chown
+ [[ chown == -* ]]
+ [[ chown == -* ]]
+ done=1
+ '[' -z 1 ']'
+ [[ 1 -eq 0 ]]
+ complete -p chown
++ complete -p chown
+ cspec=' complete -o filenames -F _chown chown
'
+ '[' '_chown chown
' '!=' ' complete -o filenames -F _chown chown
' ']'
+ func='_chown chown
'
I just reverted the patch, and adding a command on redhat bugzilla.
More information about the Bash-completion-devel
mailing list