[fpc-pascal] Setting environment variables on Unix/Linux?

Reinier Olislagers reinierolislagers at gmail.com
Thu Nov 17 17:31:14 CET 2011


On 17-11-2011 13:55, michael.vancanneyt at wisa.be wrote:
> On Thu, 17 Nov 2011, Reinier Olislagers wrote:
>> Hi list,
>>
>> It seems FPC allows one to retrieve environment variables on Linux/Unix
>> (GetEnvironmentVariable) but not to set them.
>>
>> Is that correct?
> 
> Yes.
<snip>
> No. Unix works differently.
> 
> Environment variables are specified on startup, and are then immutable.
> 
> If you want to specify the environment for a process, you must do it at the
> start.
Thanks for the info. It was already quite fishy to me that such
seemingly simple functionality wasn't implemented...

Regards,
Reinier



More information about the fpc-pascal mailing list