mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 16:29:27 +02:00
13 lines
271 B
ObjectPascal
13 lines
271 B
ObjectPascal
Program Example12;
|
|
|
|
{ Program to demonstrate the Execlp function. }
|
|
|
|
Uses linux, strings;
|
|
|
|
begin
|
|
{ Execute 'ls -l', with current environment. }
|
|
{ 'ls' is looked for in PATH environment variable.}
|
|
{ envp is defined in the system unit.}
|
|
Execlp ('ls -l',envp);
|
|
end.
|