summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d/20vyatta-cfg
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-03-20 18:25:42 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-03-20 18:25:42 -0700
commita1a664266381ee6290f22213dc415960ec24b267 (patch)
tree62716bffb3db04913eedabb93228302d96fe93c4 /etc/bash_completion.d/20vyatta-cfg
parent00030c2e909b33ef0dbf694d82525134bdb5ffdf (diff)
downloadvyatta-cfg-a1a664266381ee6290f22213dc415960ec24b267.tar.gz
vyatta-cfg-a1a664266381ee6290f22213dc415960ec24b267.zip
handle <> completion correctly
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 7968cec..f979939 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -441,6 +441,8 @@ vyatta_parse_tmpl ()
if (( ${#vyatta_cfg_allowed[@]} == 0 )); then
astr=$(eval "$acmd")
+ astr=${astr//</\\<}
+ astr=${astr//>/\\>}
eval "ares=( $astr )"
for (( i=0 ; i<${#ares[@]} ; i++ )); do
if [[ "${ares[i]}" != \<*\> ]]; then