[Lazarus] SetEnv on Linux 64bit

waldo kitty wkitty42 at windstream.net
Wed Apr 4 15:14:12 CEST 2012


On 4/4/2012 08:02, Honza wrote:
> 2012/4/4<michael.vancanneyt at wisa.be>:
>> Not the current.
>>
>> The EXTERNAL variable environ, i.e. the one that the kernel passed on,
>> which cannot be modified. You can only modify your local copy.
>
> 14:00 myname at tux64:~/tmp/c$ ls
> a.c  b.c
[trim]
> 14:00 myname at tux64:~/tmp/c$ ./a.out
> a1: (null)
> a2: MYVALUE
> b: MYVALUE
> 14:00 myname at tux64:~/tmp/c$

your example shows a shell... i may have added to the confusion because a trick 
i recall us doing in the DOS days was to change the master environment... after 
running ./a.out, do you see your MYVAR in the environment via "set | more" or 
"export | more" or whatever?? most likely you will not see your MYVAR at that 
point after a.out finishes execution... i believe this is what was being pointed 
to as not supported...

my apologies if i added confusion...




More information about the Lazarus mailing list