<div dir="ltr">On Wed, Oct 1, 2008 at 6:13 AM, Rob Shearman <span dir="ltr">&lt;<a href="mailto:robertshearman@gmail.com" target="_blank">robertshearman@gmail.com</a>&gt;</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 &lt;<a href="mailto:dylan.ah.smith@gmail.com" target="_blank">dylan.ah.smith@gmail.com</a>&gt;:<br>
&gt; -exec $WINETEST_WRAPPER &quot;$topobjdir/wine&quot; &quot;$program&quot; &quot;$infile&quot; &quot;$@&quot;<br>
&gt; +exec $WINETEST_WRAPPER &quot;$topobjdir/wine&quot; &quot;$program&quot; $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&#39;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 &#39;&#39; does not exist.<br>
<br>So I do need to pass in no arguments when $infile isn&#39;t given, but that can also be done with the following code:<br><br>if [ -z &quot;$infile&quot; ]; then<br>&nbsp;&nbsp;&nbsp; exec $WINETEST_WRAPPER &quot;$topobjdir/wine&quot; &quot;$program&quot;<br>
else<br>&nbsp;&nbsp;&nbsp; exec $WINETEST_WRAPPER &quot;$topobjdir/wine&quot; &quot;$program&quot; &quot;$infile&quot; &quot;$@&quot;<br>fi<br></div>