[fpc-pascal] exec with many params
Michael Van Canneyt
michael at freepascal.org
Fri Sep 2 15:54:18 CEST 2005
On Tue, 21 Jun 2005, Antal wrote:
> in linux I can't use the exec for executing a program with more than one
> parameter.
> I tried to supply more than a parameter separeted with whitespace, but
> it's not reliable, since the program is treating it as just one parameter
>
> so I can't pass options to programs, such as:
> ls -l .*
Which exec call is this ?
First of all; .* is normally handled by the shell.
Secondly, parameters are passed as an array of PChar pointers.
Michael.
More information about the fpc-pascal
mailing list