diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-20 18:25:42 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-20 18:25:42 -0700 |
commit | a1a664266381ee6290f22213dc415960ec24b267 (patch) | |
tree | 62716bffb3db04913eedabb93228302d96fe93c4 /etc/bash_completion.d/20vyatta-cfg | |
parent | 00030c2e909b33ef0dbf694d82525134bdb5ffdf (diff) | |
download | vyatta-cfg-a1a664266381ee6290f22213dc415960ec24b267.tar.gz vyatta-cfg-a1a664266381ee6290f22213dc415960ec24b267.zip |
handle <> completion correctly
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 2 |
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 |