Improve test framework

Do not consider ':' and '=' as shell metacharacters when quoting
This commit is contained in:
Andrew Bettison 2012-05-25 14:29:10 +09:30
parent 1af238a4f9
commit 7f58b71d78

View File

@ -345,7 +345,7 @@ _tfw_shellarg() {
_tfw_shopt -s extglob
for arg; do
case "$arg" in
+([A-Za-z_0-9.,+\/-])) shellarg+=("$arg");;
+([A-Za-z_0-9.,:=+\/-])) shellarg+=("$arg");;
*) shellarg+=("'${arg//'/'\\''}'");;
esac
done