<html><body bgcolor="#FFFFFF"><div>The prompt appears because system somehow touches stdin. I'm not sure what is going on the tho.&nbsp;</div><div><br class="webkit-block-placeholder"></div><div>Robby<br><br>On Mar 12, 2008, at 2:59 PM, "Stephen De Gabrielle" &lt;<a href="mailto:stephen@degabrielle.name">stephen@degabrielle.name</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Thanks, <br><br>I don't need the path, so I modified your suggestion; <br><br>(system "/bin/sh -c \". /etc/profile;. ~/.profile ;svn commit &nbsp;-m \"auto-commit\"\"")<br><br>Works nicely. (I'm this will work on my linux machine)<br>
<br>Weirdly a 'read'-syle[eof] prompt appears then disappears - without need for input.<br><br>Thanks, <br><br>Stephen<br><br><br>On Wed, Mar 12, 2008 at 3:55 PM, Eli Barzilay &lt;<a href="mailto:eli@barzilay.org"><a href="mailto:eli@barzilay.org">eli@barzilay.org</a></a>&gt; wrote:<br>
&gt; On Mar 12, Stephen De Gabrielle wrote:<br>&gt; &nbsp;&gt; Thanks for the tip,<br>&gt; &nbsp;&gt;<br>&gt; &nbsp;&gt; I've only taken a brief look, but it seems a solution is to run the<br>&gt; &nbsp;&gt; config files ~/.profile /etc/profile in my system call. probably by<br>
&gt; &nbsp;&gt; constructing a string or file to pass to or execute by 'system'<br>&gt; &nbsp;<br>&gt; &nbsp;You can run "/bin/sh -c \". /etc/profile;/bin/env\"" and parse the<br>&gt; &nbsp;results, then use `putenv' to change the mzscheme process's<br>
&gt; &nbsp;environment accordingly.<br>&gt; &nbsp;<br>&gt; <br>&gt; &nbsp;<br>&gt; &nbsp;&gt; They should do no harm, modify path as needed, and work on linux's<br>&gt; &nbsp;&gt; and osx transparently (I haven't thought about windows yet)<br>
&gt; &nbsp;<br>&gt; &nbsp;There is no need to do that on linux. &nbsp;(And windows is the usual mess.)<br>&gt; &nbsp;<br>&gt; <br>&gt; <br>&gt; &nbsp;--<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((lambda (x) (x x)) (lambda (x) (x x))) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eli Barzilay:<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.barzilay.org/"><a href="http://www.barzilay.org/">http://www.barzilay.org/</a></a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Maze is Life!<br>
&gt; &nbsp;<br><br><br><br>-- <br>Cheers,<br><br>Stephen<br><br>--<br>Stephen De Gabrielle<br><a href="mailto:s.degabrielle@ucl.ac.uk"><a href="mailto:s.degabrielle@ucl.ac.uk">s.degabrielle@ucl.ac.uk</a></a><br>Telephone +44 (0)20 7679 5242 (x45242)<br>Mobile 079 851 890 45<br>
Project: Making Sense of Information (MaSI)<br><a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html"><a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html">http://www.uclic.ucl.ac.uk/annb/MaSI.html</a></a><br><br>UCLIC: University College London Interaction Centre<br><a href="http://www.uclic.ucl.ac.uk/"><a href="http://www.uclic.ucl.ac.uk/">http://www.uclic.ucl.ac.uk/</a></a><br>
<br>Remax House - 31/32 Alfred Place<br>London - WC1E 7DP<br>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________</span><br><span> &nbsp;For list-related administrative tasks:</span><br><span> &nbsp;<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme"><a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a></a></span><br></div></blockquote></body></html>