summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-04 16:09:28 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-04 16:09:28 -0500
commite20bbb25b010b46d19f2d1433c1aec400a23e4ab (patch)
tree76204fe7a0d0e1c4aaaae6547be0a3eade0c6df3 /etc/bash_completion.d
parent90c3c647fe33146ef3d6a0572f93c634ed650834 (diff)
downloadvyatta-cfg-e20bbb25b010b46d19f2d1433c1aec400a23e4ab.tar.gz
vyatta-cfg-e20bbb25b010b46d19f2d1433c1aec400a23e4ab.zip
Clear vyatta_cfg_comp_help when starting a new completion otherwise the Detailed Information section from the previous completion will be retained on this completion
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 0dad69d..860e485 100755
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -613,6 +613,7 @@ vyatta_config_complete ()
{
local restore_shopts=$( shopt -p extglob nullglob | tr \\n \; )
shopt -s extglob nullglob
+ vyatta_cfg_comp_help=''
if [ "$COMP_LINE" == "$VYATTA_COMP_LINE" ]; then
VYATTA_COMP_LINE=$VYATTA_COMP_LINE_EMPTY