Bash completion: Small optimizations
authorMichael Hanselmann <hansmi@google.com>
Thu, 27 Aug 2009 15:35:36 +0000 (17:35 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 28 Aug 2009 15:24:54 +0000 (17:24 +0200)
commit580ef58d723fa359e477f675ea5ca40abaf3d9b4
tree23320efe76aa246a8c98d685428eb76ca8bb9372
parentaca55e1505eb910d577a5b14c1d9dec0ff5d2448
Bash completion: Small optimizations

$2 doesn't contain the correct value when completing something like
"--disk-template=…". Getting it via COMP_WORDS is better.

Short options (e.g. -I) can't have an equal sign.

Also add useful debugging commands for development.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
autotools/build-bash-completion