* tests/gen_tests.sh: Read first argument separately, put it in $arg0,
and the rest of the arguments in $args.
(case "$arg0" in) <+*)>: Set command line to $args and source $arg0.
names=
-while read -r name args; do {
+while read -r name arg0 args; do {
[ -n "${name###*}" ] || continue
if [ -z "$match" ]; then
names="$names $name"
hdr="\
#!/bin/sh -efu
-# Generated by $0 from $input ($name $args); do not edit."
+# Generated by $0 from $input ($name $arg0 $args); do not edit."
- case "$args" in
+ case "$arg0" in
+*)
cat <<-EOF
$hdr
- . "\${srcdir=.}/${args#+}"
+ set -- $args
+ . "\${srcdir=.}/${arg0#+}"
EOF
;;
cat <<-EOF
$hdr
. "\${srcdir=.}/init.sh"
- run_strace_match_diff $args
+ run_strace_match_diff $arg0 $args
EOF
;;
cat <<-EOF
$hdr
. "\${srcdir=.}/init.sh"
- $args
+ $arg0 $args
EOF
;;
esac > "$output"