summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-30 20:45:14 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-30 20:45:14 -0800
commit47143c68b2ee3df6675dc7390e29356f4866d923 (patch)
tree4e95ae2e177600f3e0781aaef785bfec8815579c
parent5423665a6424de7dca6efec0ad8b2d93ca267326 (diff)
downloadvyatta-cfg-47143c68b2ee3df6675dc7390e29356f4866d923.tar.gz
vyatta-cfg-47143c68b2ee3df6675dc7390e29356f4866d923.zip
Use new bash empty command completion
In newer version of bash the complete -E is used to do command completion at top level.
-rw-r--r--debian/control2
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index 4ead554..1f62716 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Architecture: any
Depends: sed (>= 4.1.5),
procps (>= 1:3.2.7-3),
coreutils (>= 5.97-5.3),
- vyatta-bash | bash (>= 3.1),
+ vyatta-bash | bash (>= 4.1),
vyatta-quagga | quagga,
vyatta-op,
vyatta-config-migrate,
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 3be5a78..7023b5c 100755
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -873,7 +873,7 @@ if ! bind -p |grep -q '\\C-x\\C-o'; then
bind '"\C-x\C-o": copy-region-as-kill'
fi
-complete -F vyatta_config_complete ''
+complete -E -F vyatta_config_complete
complete -F vyatta_config_complete set
complete -F vyatta_config_complete delete
complete -F vyatta_config_complete show