mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:49:23 +02:00
+ Added exit status check
This commit is contained in:
parent
d37d9c90cb
commit
06690a3731
@ -4,7 +4,10 @@ uses linux;
|
|||||||
|
|
||||||
{ Program to demonstrate the Shell function }
|
{ Program to demonstrate the Shell function }
|
||||||
|
|
||||||
|
Var S : Longint;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
writeln ('Output of ls -l *.pp');
|
Writeln ('Output of ls -l *.pp');
|
||||||
Shell ('ls -l *.pp');
|
S:=Shell ('ls -l *.pp');
|
||||||
|
Writeln ('Command exited wwith status : ',S);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user