t: multiple command arguments
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 11 Sep 2019 18:36:51 +0000 (20:36 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 12 Sep 2019 15:48:11 +0000 (17:48 +0200)
Worked around by bundling -t and -f in t1801, but will not always be
possible.

t/regress.t
t/t1801-progress_-t-1_-ftime=\K.in [moved from t/t1801-progress_-t-1ftime=\K.in with 100% similarity]
t/t1801-progress_-t-1_-ftime=\K.out [moved from t/t1801-progress_-t-1ftime=\K.out with 100% similarity]

index eedefbbb1a7f303d77e56ee306c508700d34ab38..8f92ee7958524d98054349813aaad47c0791cd2a 100755 (executable)
@@ -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