<div class="gmail_quote">On Fri, Mar 19, 2010 at 10:59 PM, Seth Burleigh <span dir="ltr"><<a href="mailto:seth@tewebs.com">seth@tewebs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Could run-program be copied and modified for the compiler so that it<br>
doesn't enclose each separate  arguments in quotes (so you could just<br>
pass the whole argument string)? Currently the compiler already passes<br>
the whole string into the system function and i dont think this is any<br>
more/less sensitive to spaces in arguments than whatever c functions<br>
run-program uses (well, i don't actually know, but thats why im asking).</blockquote></div><div><br></div>RUN-PROGRAM is different from SYSTEM. The former is based on execve() and thus it needs a list of strings. One string per argument. No two arguments can be collapsed in the same string. This is crucial, AFAI remember.<div>
<br></div><div>SYSTEM just gets a string and performs the splitting of arguments itself.</div><div><br></div><div>So the point is that we have to be careful with the list of arguments that the compiler gets from autoconf, how they are split, how we add additional arguments and a lot of other things. It is worth doing it but it is not just a matter of cut&paste.</div>
<div><br></div><div>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>
</div>