<div dir="ltr"><div><br></div><div class="gmail_extra">On Mon, Sep 9, 2013 at 2:51 AM, Faré <span dir="ltr"><<a href="mailto:fahree@gmail.com" target="_blank">fahree@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>On Mon, Sep 9, 2013 at 1:25 AM, Dave Cooper <<a href="mailto:david.cooper@genworks.com" target="_blank">david.cooper@genworks.com</a>> wrote:<br>
</div>> CCL 1.9<br>
> =======<br>
<div>><br>
> The second failure just looks like the extra space after the "ok 1" as we<br>
> were seeing before. Perhaps this is also a CCL issue? Can anyone from<br>
> Clozure comment on this?<br>
><br>
</div>As I mentioned before, it's a CCL bug. I filed<br>
<a href="http://trac.clozure.com/ccl/ticket/1110" target="_blank">http://trac.clozure.com/ccl/ticket/1110</a><br>
<div><br></div></blockquote><div><br></div><div>Ok - so this issue is closed as far as this email thread is concerned. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
> Also, I think I confirmed that CCL's ccl:run-program on Windows really does<br>
> need the "cmd /c " prepended to be able to run a normal program. <br>
><br></div></blockquote><div>... </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
</div>I believe it might be a matter of searching %PATH% or not.<br>
It's really better to have an interface that doesn't call CMD when you<br>
don't want it called.<br>
The price to pay may then be to have to specify a full path for the<br>
target command.<br>
Note that uiop:run-program already accepts a :force-shell t argument<br>
for people who want CMD /C to be forced. (PS: definitely not tested<br>
under Windows.)<br>
<div><br></div></blockquote><div><br></div><div>Yes absolutely right. Sorry for taking so long to understand this. I confirmed it with various calls to the CCL executable itself (using the full pathname etc). </div>
<div><br></div><div>So the reason we do the (cons "cmd" (strcat "/c " command)) on CCL is because ccl:run-program requires the executable as a separate argument, and it would be too convoluted/error-prone to try to parse the executable out of a string given by the user and call the ccl:run-program with it as a separate argument. So when the user gives a string argument we just use "cmd" as the executable. Sounds reasonable enough. </div>
<div><br></div><div>When and if CCL provides a run-program which allows direct command-line access, as Fare suggests in <a href="http://trac.clozure.com/ccl/ticket/1110" target="_blank">http://trac.clozure.com/ccl/ticket/1110</a>, then uiop:run-program will be able to call this version of run-program when given a string, and just pass the string directly. </div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>You worry too much about your job. Stop it. You're not paid enough to worry.<br>
</div>
</blockquote></div><div class="gmail_extra"><br></div><div><br></div><div><br></div>
</div></div>