<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 3:36 AM, Faré <span dir="ltr"><<a href="mailto:fahree@gmail.com" target="_blank">fahree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Dec 19, 2016 at 2:32 AM, Jean-Claude Beaudoin<br>
<<a href="mailto:jean.claude.beaudoin@gmail.com">jean.claude.beaudoin@gmail.<wbr>com</a>> wrote:<br>
><br>
><br></span><span class="">(...)<br>
> 2) test-run-program.script<br>
><br>
> .../uiop/launch-program.lisp is incomplete for MKCL on windows and needs to<br>
> be patched<br>
> as per attached file to be in any way functional in that context.<br>
> Once patched accordingly and applied to very latest MKCL repo master head<br>
> this test now passes.<br>
><br>
</span>+               #+(or mkcl) (list "cmd" (strcat "/c " command))<br>
The list seems very wrong, unless MKCL doesn't quote its arguments to<br>
the win32 spawn function, which is probably wrong in its own right.<br></blockquote><div><br></div><div>You lost me entirely here. It does look like something that works pretty well for being so wrong...</div><div><br></div><div>No "spawn" function involved here, just a very native and basic Win32 CreateProcessW() call.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you confirm how to execute<br>
a raw CMD command line with MKCL?<br>
<br></blockquote><div><br></div><div>Are you looking for something like</div><div><br></div><div>(mkcl:run-program "cmd" '("/c echo ok 1") :output t)</div><div>or</div><div>(mkcl:run-program "cmd" '("/c" "echo" "ok" "1") :output t)</div><div><br></div><div>both produce the same output (sent to stdout here by the ":output t" pair, adjust to your need).</div><div>Any slicing or concatenation of the arguments produce the same result.</div><div><br></div><div><br></div><div> <br></div></div></div></div>