summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 13:25:50 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 13:25:50 -0700
commitaded3ffd12620dd0fab59538b4fced05a7739987 (patch)
tree3ffbacf037e898e6c60acb640bf79d9106fd92d2 /etc
parentd9349ca1d70d49ead870decdfafaefc21abd2a42 (diff)
downloadvyatta-cfg-aded3ffd12620dd0fab59538b4fced05a7739987.tar.gz
vyatta-cfg-aded3ffd12620dd0fab59538b4fced05a7739987.zip
escape '*' for config-mode completion
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-cfg2
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/%}"
}