From: Mischa POSLAWSKY Date: Wed, 11 Sep 2019 18:36:51 +0000 (+0200) Subject: t: multiple command arguments X-Git-Tag: v1.06~8 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/e9ae472e7302c682e73b1a301ad4bc35c1865943 t: multiple command arguments Worked around by bundling -t and -f in t1801, but will not always be possible. --- 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"