On 17 October 2003, Frank wrote: [...]
program Bar;
uses GPC, Pipe;
var Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"'); Status: Integer = 0; ErrMsg: TString = '';
begin PWait (PExecute ('foo', PCStrings (@Arguments), ErrMsg, PExecute_One), Status, 0); WriteLn (Status, ' ', ErrMsg) end.
The output should be:
bar "bar" 0
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this: bar "bar 0 Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
On 17 October 2003, Frank wrote:
[...]
program Bar;
uses GPC, Pipe;
var Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"'); Status: Integer = 0; ErrMsg: TString = '';
begin PWait (PExecute ('foo', PCStrings (@Arguments), ErrMsg, PExecute_One), Status, 0); WriteLn (Status, ' ', ErrMsg) end.
The output should be:
bar "bar" 0
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional? Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
On 20 Oct 2003 at 22:05, Frank Heckenbach wrote: [...]
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional?
bar bar 0 Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
On 20 Oct 2003 at 22:05, Frank Heckenbach wrote: [...]
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional?
bar bar 0
Oh yeah, I think there's a bug in the conversion. Try the attached patch. Also, perhaps a little bug in the test (which may not be relevant, though). Change Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"'); to Arguments: array [0 .. 3] of CString = ('foo', 'bar', '"bar"', nil); Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
On 22 Oct 2003 at 14:19, Frank Heckenbach wrote: [...]
What do you get when you change the conditional?
bar bar 0
Oh yeah, I think there's a bug in the conversion. Try the attached patch. Also, perhaps a little bug in the test (which may not be relevant, though).
With the patch applied, it gives the correct result now (without any change to the test). Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/
participants (4)
-
Frank Heckenbach -
Prof A Olowofoyeku (The African Chief) -
Prof. A Olowofoyeku (The African Chief) -
Russell Whitaker