hi,
I'm using fpc on a linux box (i386). fpc version is "Free Pascal Compiler version 1.00 [2000/07/11] for i386".
ok, I want to have a simple tool exiting with return code 0 or 1 if a substring is in another string or not.
this is the source code:
begin
if paramcount = 2 then begin
writeln( pos(paramstr(1), paramstr(0)) );
writeln( pos(paramstr(0), paramstr(1)) );
end;
end.now, when compiling "ppc substr.pas", and starting: substr IsThisABug u
it writes:
0
0
Am I wrong in thinking that at least one line should have been "-1"?
Best regards,
Tjabo
