<div dir="ltr">On Wed, Oct 1, 2008 at 6:13 AM, Rob Shearman <span dir="ltr"><<a href="mailto:robertshearman@gmail.com" target="_blank">robertshearman@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/9/30 Dylan Smith <<a href="mailto:dylan.ah.smith@gmail.com" target="_blank">dylan.ah.smith@gmail.com</a>>:<br>
> -exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" "$infile" "$@"<br>
> +exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" $infile $@<br>
<br>
It looks like this will cause problems now if $infile contains spaces<br>
or if any of the arguments in $@ contain spaces.<br>
<br>
--<br>
<font color="#888888">Rob Shearman<br>
</font></blockquote></div><br>I didn't think about that, thanks for pointing that out.<br><br>A change there does need to be made, because what happens when I run runtest without arguments is:<br>Fatal: test '' does not exist.<br>
<br>So I do need to pass in no arguments when $infile isn't given, but that can also be done with the following code:<br><br>if [ -z "$infile" ]; then<br> exec $WINETEST_WRAPPER "$topobjdir/wine" "$program"<br>
else<br> exec $WINETEST_WRAPPER "$topobjdir/wine" "$program" "$infile" "$@"<br>fi<br></div>