[Bash-completion-devel] mount, umount completions

Raphaël raphael.droz+floss at gmail.com
Sun Nov 20 21:32:51 UTC 2011


On Sun, Nov 20, 2011 at 02:08:20AM +0300, Igor Murzov wrote:
> Hi, list.
> 
> There are new linux-specific mount and umount completions in the mount
> branch. Please review and test. The new completions address Alioth
> bugs #313166, #313214 and #313437.

you may also want to use the following constructs in the --option) case:
# doing
COMPREPLY+=('opt1 opt2= ...')
# multiple times
COMPREPLY+=('opt4 opt5 ...')
...
# then finally, once:
COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- $cur ) )

It should requires less calculation.


Raph



More information about the Bash-completion-devel mailing list