fpc/tests/webtbs/tw4038.pp
florian d1759ff5b1 * use gecho on win32
git-svn-id: trunk@1412 -
2005-10-16 13:41:22 +00:00

23 lines
500 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 4038 }
{ Submitted by "Antonio Marti" on 2005-06-01 }
{ e-mail: windowze2000@yahoo.es }
uses sysutils;
var b: byte;
s : string;
begin
{$ifdef unix}
s:='/bin/echo';
{$else}
{$ifdef win32}
s:='gecho';
{$else win32}
s:='echo';
{$endif win32}
{$endif}
writeln(executeprocess(s,'works1 works2 works3'));
writeln(executeprocess(s,'works1 works2 works3'));
writeln;
for b:=1 to 2 do
writeln(executeprocess(s,'fails1 fails2 fails3'));
end.