From eea195e58cc581fcd68f3e0546394bd9b1172c5e Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 13 Mar 2021 06:58:13 +0100 Subject: [PATCH] eval test options to allow quoted values Shell scripting fix for whitespace in set parameters. --- t/regress.t | 2 +- .../t1310-currency_-f',\\K'.out" | 0 ..._zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out} | 0 ...9]+)(?=,m).out => t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out} | 0 .../t1330-pokemon_-f'(?<=\\()'.out" | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename "t/t1310-currency_-f,\\K.out" => "t/t1310-currency_-f',\\K'.out" (100%) rename t/{t1311-currency_zoom_-L6-_-f,([0-9.]{5})_--value-length=6_--minval=1.out => t1311-currency_zoom_-L6-_-f',([0-9.]{5})'_--value-length=6_--minval=1.out} (100%) rename t/{t1320-earthquakes_-f([.0-9]+)(?=,m).out => t1320-earthquakes_-f'([.0-9]+)(?=,m)'.out} (100%) rename "t/t1330-pokemon_-f(?<=\\().out" => "t/t1330-pokemon_-f'(?<=\\()'.out" (100%) 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" -- 2.30.0