Hi,<br><br>Remember to post this in bugzilla.<br><br>Could a difference in MingW version between the 4.6.0 and 4.6.2 binary have led to the error?<br><br>As a simple debug measure I suppose you could diff the code for/underlying shell-command of 4.6.0 and 4.6.2. <br>
<br>Mikael<br><br><div class="gmail_quote">2012/1/17 REPLeffect <span dir="ltr"><<a href="mailto:repleffect@gmail.com">repleffect@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The shell-command procedure under the MinGW build of Gambit 4.6.2<br>
seems to be broken.<br>
When running gsi under the MinGW MSys shell (by running gsi.exe -:d-),<br>
things worked<br>
fine under Gambit 4.6.0 (as shown below). However, in Gambit 4.6.2,<br>
it appears that<br>
only the program name passed in the shell command is being recognized.<br>
Thus, I could<br>
run (shell-command "ls 1 2 3") while in a directory where no such<br>
files existed, and I<br>
got the contents of the directory (as if the command had only been<br>
"ls", with no arguments).<br>
<br>
==== Output running under Msys: (gsi.exe -:d-) ==========<br>
<br>
Gambit v4.6.0<br>
<br>
> (shell-command "ls 1 2 3")<br>
ls: 1: No such file or directory<br>
ls: 2: No such file or directory<br>
ls: 3: No such file or directory<br>
512<br>
><br>
<br>
<br>
Gambit v4.6.2<br>
<br>
> (shell-command "ls 1 2 3")<br>
INSTALL.txt<br>
LGPL.txt<br>
LICENSE-2.0.txt<br>
README<br>
bin<br>
config.guess<br>
config.log<br>
config.status<br>
config.sub<br>
configure<br>
<a href="http://configure.ac" target="_blank">configure.ac</a><br>
doc<br>
examples<br>
gsc<br>
gsc-comp.exe<br>
gsi<br>
include<br>
install-sh<br>
lib<br>
makefile<br>
<a href="http://makefile.in" target="_blank">makefile.in</a><br>
misc<br>
mkidirs<br>
prebuilt<br>
relpath<br>
tests<br>
0<br>
><br>
<br>
<br>
<br>
<br>
The results get even worse when running Gambit 4.6.2 directly from the Windows<br>
start menu. Here again, version 4.6.0 does what I expected. However,<br>
when I run<br>
version 4.6.2, I can't get the shell-command to work no matter what<br>
command I pass it:<br>
<br>
<br>
<br>
====== Output running gsi.exe directly from the Windows Start Menu: ======<br>
<br>
<br>
Gambit v4.6.0<br>
<br>
> (shell-command "dir 1 2 3")<br>
Volume in drive C has no label.<br>
Volume Serial Number is 14C2-1C72<br>
<br>
Directory of C:\test\Gambit-C\v4_6_0\v4.6.0\bin<br>
<br>
<br>
Directory of C:\test\Gambit-C\v4_6_0\v4.6.0\bin<br>
<br>
<br>
Directory of C:\test\Gambit-C\v4_6_0\v4.6.0\bin<br>
<br>
File Not Found<br>
256<br>
><br>
<br>
<br>
<br>
Gambit v4.6.2<br>
<br>
> (shell-command "dir 1 2 3")<br>
*** ERROR IN (console)@1.1 -- No such file or directory<br>
(open-process<br>
'(path: "sh" arguments: ("-c" "dir 1 2 3") stdin-redirection: #f<br>
stdout-red...<br>
)<br>
1><br>
<br>
> (shell-command "dir")<br>
*** ERROR IN (console)@5.1 -- No such file or directory<br>
(open-process<br>
'(path: "sh" arguments: ("-c" "dir") stdin-redirection: #f<br>
stdout-redirecti...<br>
)<br>
1><br>
<br>
<br>
--------------------------------------------------------------<br>
<br>
All of these tests were run against the current prebuilt versions of<br>
Gambit 4.6.0 and 4.6.2 downloaded from Gambit's web site.<br>
<br>
I'll be happy to test any patches or other changes needed to fix this problem.<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br>