Re: [Chicken-users] windows shell problem

2009-01-07 Thread felix winkelmann
On Tue, Jan 6, 2009 at 1:09 PM, Matthew Flatt mfl...@cs.utah.edu wrote: If you put an extra set of quotation marks around the argument, won't they effectively cancel the quotation marks added by system()? ...Remarkable. It really seems to work. I found this:

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Mon, Jan 5, 2009 at 6:58 PM, John Cowan co...@ccil.org wrote: felix winkelmann scripsit: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Tue, Jan 6, 2009 at 12:00 AM, Tobia Conforto tobia.confo...@gmail.com wrote: Have you tried adding an .exe extension to csi? Like: c:\home\chicken-trunk\bin\csi.exe I know it sounds stupid... No, it doesn't. But I'm quite sure John is right with his assumption. You could try and

Re: [Chicken-users] windows shell problem

2009-01-06 Thread Matthew Flatt
At Tue, 6 Jan 2009 11:29:24 +0100, felix winkelmann wrote: On Mon, Jan 5, 2009 at 6:58 PM, John Cowan co...@ccil.org wrote: felix winkelmann scripsit: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed

Re: [Chicken-users] windows shell problem

2009-01-06 Thread felix winkelmann
On Tue, Jan 6, 2009 at 1:09 PM, Matthew Flatt mfl...@cs.utah.edu wrote: If you put an extra set of quotation marks around the argument, won't they effectively cancel the quotation marks added by system()? That is, pass c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 1:37 AM, Lars Nilsson chamael...@gmail.com wrote: On Sun, Jan 4, 2009 at 7:27 PM, Thomas Chust ch...@web.de wrote: Ivan Raikov wrote: [...] I think the problem is that \ in strings needs to be escaped, [...] Hello, I don't think so, unless the escaping problem

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 9:14 AM, felix winkelmann bunny...@gmail.com wrote: - checkout the current svn trunk - run make PLATFORM=mingw PREFIX=c:/home/chicken-trunk DEBUGBUILD=1 bootstrap (prefix must contain drive letter and use forward slashes) - run make PLATFORM=mingw

Re: [Chicken-users] windows shell problem

2009-01-05 Thread John Cowan
felix winkelmann scripsit: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e (import setup-api)

Re: [Chicken-users] windows shell problem

2009-01-05 Thread felix winkelmann
On Mon, Jan 5, 2009 at 2:14 PM, Lars Nilsson chamael...@gmail.com wrote: On Mon, Jan 5, 2009 at 3:14 AM, felix winkelmann bunny...@gmail.com wrote: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here) to

Re: [Chicken-users] windows shell problem

2009-01-05 Thread Thomas Chust
felix winkelmann wrote: [...] If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e (import setup-api) c:\...some...path...\defstruct.setup I get an error message that tells me that the program

Re: [Chicken-users] windows shell problem

2009-01-05 Thread Lars Nilsson
On Mon, Jan 5, 2009 at 3:14 AM, felix winkelmann bunny...@gmail.com wrote: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e (require-library

Re: [Chicken-users] windows shell problem

2009-01-05 Thread Tobia Conforto
felix winkelmann wrote: f I pass this string (verbatim, just like it is printed here) to system(3): c:\home\chicken-trunk\bin\csi -bnq -e (require-library setup-api) -e (import setup-api) c:\...some...path...\defstruct.setup Have you tried adding an .exe extension to csi? Like:

Re: [Chicken-users] windows shell problem

2009-01-05 Thread Ivan Raikov
Ok, can you try passing c:\home\chicken-trunk\bin\csi.exe to the Windows system(3) call? Perhaps it needs the full path to the executable. -Ivan felix winkelmann bunny...@gmail.com writes: The handling of backslashes as escaping characters is not the problem, it seems. If I pass this

[Chicken-users] windows shell problem

2009-01-04 Thread felix winkelmann
Hi! I'm trying to fix the mingw build and have encountered a problem that leaves me absolutely dumbfounded. I invoke csi and csc in chicken-install like this: c:\home\chicken-trunk\bin\csi ...args ... (Note the quotes around the pathname) This works fine in cmd.exe, but fails when using the

Re: [Chicken-users] windows shell problem

2009-01-04 Thread Ivan Raikov
Hi Felix, I think the problem is that \ in strings needs to be escaped, otherwise the string below will include \h \c and \b escape sequences, instead of the characters \ h c b. -Ivan felix winkelmann bunny...@gmail.com writes: Hi! I'm trying to fix the mingw build and have

Re: [Chicken-users] windows shell problem

2009-01-04 Thread Thomas Chust
Ivan Raikov wrote: [...] I think the problem is that \ in strings needs to be escaped, [...] Hello, I don't think so, unless the escaping problem occurs on the Scheme or C side of things. As far as I know, the Windows shell only understands two escape characters: The double quote (), to

Re: [Chicken-users] windows shell problem

2009-01-04 Thread Lars Nilsson
On Sun, Jan 4, 2009 at 7:27 PM, Thomas Chust ch...@web.de wrote: Ivan Raikov wrote: [...] I think the problem is that \ in strings needs to be escaped, [...] Hello, I don't think so, unless the escaping problem occurs on the Scheme or C side of things. As far as I know, the Windows