[Bash-completion-devel] Bug#512556: Bug#512556: bash-completion: awk syntax error on 'modprobe -r /<tab>'

Colin Watson cjwatson at ubuntu.com
Mon Jan 26 11:06:00 UTC 2009


On Sun, Jan 25, 2009 at 11:44:49PM +0200, Ville Skyttä wrote:
> On Wednesday 21 January 2009, Colin Watson wrote:
> > Typing 'modprobe -r /<tab>' produces the following output:
> >
> >   $ modprobe -r /awk: {if (NR != 1 && $1 ~ /^//) print $1}
> >   awk:                          ^ syntax error
> >
> > I've attached a bzr bundle fixing this, based on a patch by Martin Mai.
> > You can merge it with 'bzr merge
> > /path/to/bash-completion-modprobe.bundle'.
> 
> The patch does indeed avoid this error but I don't think it's the correct 
> fix - the patch makes "modprobe -r /<TAB>" complete on filenames but at least 
> on my Fedora 9 box with module-init-tools-3.4-13.fc9.x86_64, modprobe -r 
> doesn't operate on filenames but module names.  BTW, rmmod completion "fixes" 
> the same awk problem by redirecting 2>/dev/null.
> 
> Hopefully better fix for both applied in 
> http://bzr.debian.org/loggerhead/bash-completion/current/revision/1290

Fair enough. Thanks for the correction!

-- 
Colin Watson                                       [cjwatson at ubuntu.com]






More information about the Bash-completion-devel mailing list