[NTG-context] Ctx goes into infinite loop?

Peter Rolf indiego at gmx.net
Fri May 23 16:18:33 CEST 2014


Am 23.05.2014 13:50, schrieb Hans Hagen:
> On 5/23/2014 1:30 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>> Hello,
>>
>>>> \input \HOME/Common/_Defs_.ctx
>>>
>>> at least put { } around the input name
>>
>> -- 
>> \startluacode
>>    local home = (os.getenv("HOME.ORG") or os.getenv("HOME") or
>> "?"):gsub("\\", "/")
>>
>>    context.setvalue("HOME", home)
>> \stopluacode
>>
>> \input{\HOME/Common/_Defs_.ctx}
>>
>> \starttext
>>    Test
>> \stoptext
>>
>> -- 
>>
>> similar failure:
> 
> no loop, just a missing file ... i have no clue
> 
> 

The environment variables "HOME" and "HOME.ORG" are not predefined in a
windows shell. Just enter "env" and see what is available.

You can easily add "HOME" with this tool. A restart is required on older
Windows OS (XP)!

http://redmondlab.reachby.com/g2gz5/redmond-path-v-1-0


Peter


More information about the ntg-context mailing list