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

Ville Skyttä ville.skytta at iki.fi
Sun Jan 25 21:44:49 UTC 2009


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






More information about the Bash-completion-devel mailing list