summaryrefslogtreecommitdiff
path: root/fpcdocs/unixex/ex12.pp
blob: 590a76ce75afd06cc5f954350175bd1cbe3536ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Program Example12;

{ Program to demonstrate the Execlp function. }

Uses Unix, 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.