From e9ae472e7302c682e73b1a301ad4bc35c1865943 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 11 Sep 2019 20:36:51 +0200 Subject: [PATCH] t: multiple command arguments Worked around by bundling -t and -f in t1801, but will not always be possible. --- t/regress.t | 7 +++++-- .../t1801-progress_-t-1_-ftime=\\K.in" | 0 .../t1801-progress_-t-1_-ftime=\\K.out" | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename "t/t1801-progress_-t-1ftime=\\K.in" => "t/t1801-progress_-t-1_-ftime=\\K.in" (100%) rename "t/t1801-progress_-t-1ftime=\\K.out" => "t/t1801-progress_-t-1_-ftime=\\K.out" (100%) diff --git a/t/regress.t b/t/regress.t index eedefbb..8f92ee7 100755 --- a/t/regress.t +++ b/t/regress.t @@ -34,8 +34,11 @@ do name="$(echo ${file#*-} | tr _ \ )" set -- barcat "$file.in" - case "$name" in *\ -*) set -- "$@" "-${name#* -}";; esac - case "$name" in *' |'*) set -- sh -c "\$0 \$1 $3" "$@";; esac + case "$name" in *\ -*) set -- "$@" -"${name#* -}";; esac + case "$name" in + *' |'*) set -- sh -c "\$0 \$1 $3" "$@";; + *) set -- "$1" "$2" $3 + esac if test -n "$regenerate" then diff --git "a/t/t1801-progress_-t-1ftime=\\K.in" "b/t/t1801-progress_-t-1_-ftime=\\K.in" similarity index 100% rename from "t/t1801-progress_-t-1ftime=\\K.in" rename to "t/t1801-progress_-t-1_-ftime=\\K.in" diff --git "a/t/t1801-progress_-t-1ftime=\\K.out" "b/t/t1801-progress_-t-1_-ftime=\\K.out" similarity index 100% rename from "t/t1801-progress_-t-1ftime=\\K.out" rename to "t/t1801-progress_-t-1_-ftime=\\K.out" -- 2.30.0