From: Mischa POSLAWSKY Date: Sat, 13 Mar 2021 05:58:13 +0000 (+0100) Subject: eval test options to allow quoted values X-Git-Tag: v1.08~29 X-Git-Url: http://git.shiar.net/barcat.git/commitdiff_plain/eea195e58cc581fcd68f3e0546394bd9b1172c5e eval test options to allow quoted values Shell scripting fix for whitespace in set parameters. --- diff --git a/t/regress.t b/t/regress.t index bde3eb4..cd8bb5e 100755 --- a/t/regress.t +++ b/t/regress.t @@ -40,7 +40,7 @@ do *' ?' ) set -- sh -c "\$0 \$@ 2>/dev/null" "$@";; *' ?'*) set -- sh -c "\$0 \$@ | test \$\? = ${name#* \?}" "$@";; *' |'*) set -- sh -c "\$0 \$@ | ${name#* |}" "$@";; - *) set -- "$1" $2 $3 + *) eval set -- "$1" $2 $3 esac if test -n "$regenerate" diff --git "a/t/t1310-currency_-f,\\K.out" "b/t/t1310-currency_-f',\\K'.out" similarity index 100% rename from "t/t1310-currency_-f,\\K.out" rename to "t/t1310-currency_-f',\\K'.out" diff --git a/t/t1311-currency_zoom_-L6-_-f,([0-9.]{5})_--value-length=6_--minval=1.out b/t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out similarity index 100% rename from t/t1311-currency_zoom_-L6-_-f,([0-9.]{5})_--value-length=6_--minval=1.out rename to t/t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out diff --git a/t/t1320-earthquakes_-f([.0-9]+)(?=,m).out b/t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out similarity index 100% rename from t/t1320-earthquakes_-f([.0-9]+)(?=,m).out rename to t/t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out diff --git "a/t/t1330-pokemon_-f(?<=\\().out" "b/t/t1330-pokemon_-f'(?<=\\()'.out" similarity index 100% rename from "t/t1330-pokemon_-f(?<=\\().out" rename to "t/t1330-pokemon_-f'(?<=\\()'.out"