mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-31 00:23:50 +00:00
Improve test framework
Do not consider ':' and '=' as shell metacharacters when quoting
This commit is contained in:
parent
1af238a4f9
commit
7f58b71d78
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user