Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw4038.pp
Size: Mime:
{ Source provided for Free Pascal Bug Report 4038 }
{ Submitted by "Antonio Marti" on  2005-06-01 }
{ e-mail: windowze2000@yahoo.es }

{ %skiptarget=wince,android }

uses sysutils;
var b: byte;
    s : string;
begin
{$ifdef unix}
  s:='/bin/echo';
{$else}
 {$ifdef windows}
  s:='gecho';
 {$else windows}
  {$ifdef go32v2}
  s:=FileSearch('gecho.exe',GetEnvironmentVariable('PATH'));
  {$else go32v2}
   {$IFDEF OS2}
  s:=FileSearch('gecho.exe',GetEnvironmentVariable('PATH'));
   {$ELSE OS2}
  s:='echo';
   {$ENDIF OS2}
  {$endif go32v2}
 {$endif windows}
{$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.