diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 13:25:50 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 13:25:50 -0700 |
commit | aded3ffd12620dd0fab59538b4fced05a7739987 (patch) | |
tree | 3ffbacf037e898e6c60acb640bf79d9106fd92d2 /etc/bash_completion.d | |
parent | d9349ca1d70d49ead870decdfafaefc21abd2a42 (diff) | |
download | vyatta-cfg-aded3ffd12620dd0fab59538b4fced05a7739987.tar.gz vyatta-cfg-aded3ffd12620dd0fab59538b4fced05a7739987.zip |
escape '*' for config-mode completion
Diffstat (limited to 'etc/bash_completion.d')
-rw-r--r-- | etc/bash_completion.d/vyatta-cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index f76437e..7288b4a 100644 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -473,6 +473,7 @@ vyatta_escape () # $1: \$original # $2: \$escaped eval "$2=\${$1//\%/%25}" + eval "$2=\${$2//\*/%2A}" eval "$2=\${$2//\//%2F}" } @@ -481,6 +482,7 @@ vyatta_unescape () # $1: \$escaped # $2: \$original eval "$2=\${$1//\%2F/\/}" + eval "$2=\${$2//\%2A/*}" eval "$2=\${$2//\%25/%}" } |