[NTG-context] Retrieving original value of enviroment variable HOME

context at vivaldi.net context at vivaldi.net
Tue May 12 11:36:39 CEST 2020


Hello,

On 2020-05-12 10:53, Hans Hagen wrote:
> On 5/11/2020 5:57 PM, context at vivaldi.net wrote:
> 
>> d:\Lukas\ConTeXt\Test\EnvHome>
>> ----
>> 
>> - I'm still getting:
>> 
>> 1       C:/Users/u×ivatel
>> 2       C:/Users/u×ivatel
>> 3       C:/Users/u×ivatel
>> 4       C:/Users/u×ivatel
>> 
>> whilst HOME environment has been set to "DummyHome"  (see "echo 
>> %HOME%").
>> 
>> What's wrong?

I can try.

I found 'oldhome' text in these files:

d:\Ctx-Beta\tex\texmf-context\scripts\context\lua\mtxrun.lua
d:\Ctx-Beta\tex\texmf-context\scripts\context\stubs\mswin\mtxrun.lua
d:\Ctx-Beta\tex\texmf-context\scripts\context\stubs\unix\mtxrun
d:\Ctx-Beta\tex\texmf-context\scripts\context\stubs\win64\mtxrun.lua
d:\Ctx-Beta\tex\texmf-context\tex\context\base\mkiv\data-ini.lua
d:\Ctx-Beta\tex\texmf-mswin\bin\mtxrun.lua

Which files do you recommend to try to insert debug prints into?

And - once I "inject" an extra debug info - do I have to call 
"context.exe --make --generate" (or similar)?

Lukas


> I don't know ... maybe it pick up HOME from someplace else (the outer
> process space or so)
> 
> you can insert prints (say os.getenv('HOME')) and see what happens
> 
> Hans


More information about the ntg-context mailing list