Re: [NTG-context] System variable HOME

2012-11-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 05 Nov 2012 18:46:18 +0100, Hans Hagen wrote: On 11/5/2012 12:15 AM, Sietse Brouwer wrote: (2) why would mtxrun set the variables and risk overwriting something? The comments suggest it is for the benefit of the cnf files, but still --- why overwrite? ossetenv("HOME", homed

Re: [NTG-context] System variable HOME

2012-11-09 Thread Sietse Brouwer
> normally you can better look in a lua file in the tex/context/source path as > that is the real source .. mtxrun is just a merge So noted at http://wiki.contextgarden.net/Mtxrun (where there is also the argument reference of each subscript, and space for people to document them further, by the w

Re: [NTG-context] System variable HOME

2012-11-05 Thread Hans Hagen
On 11/5/2012 12:15 AM, Sietse Brouwer wrote: (2) why would mtxrun set the variables and risk overwriting something? The comments suggest it is for the benefit of the cnf files, but still --- why overwrite? ossetenv("HOME", homedir) -- can be used in unix cnf files ossetenv("USERP

Re: [NTG-context] System variable HOME

2012-11-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I can answer just the first point - On Mon, 05 Nov 2012 00:15:17 +0100, Sietse Brouwer wrote: Lukáš wrote: it seems that Ctx [re]defines the system variable HOME on its run Did some digging, and indeed it does. This is what happens, if I read the code correctly (lines 11681-11696 of

Re: [NTG-context] System variable HOME

2012-11-04 Thread Sietse Brouwer
Lukáš wrote: > it seems that Ctx [re]defines the system variable HOME on its run Did some digging, and indeed it does. This is what happens, if I read the code correctly (lines 11681-11696 of context/bin/mtxrun): * `homedir` is read from the environment variable USERPROFILE on Windows, and from HO

Re: [NTG-context] System variable HOME

2012-11-03 Thread Procházka Lukáš
On Sat, 03 Nov 2012 12:43:26 +0100, Sietse Brouwer wrote: it seems that Ctx [re]defines the system variable HOME on its run; This is not an answer, but a guess: Could it be that your interactive shell uses one setting, and the non-interactive shell uses another? I'm using the windows defaul

Re: [NTG-context] System variable HOME

2012-11-03 Thread Sietse Brouwer
> it seems that Ctx [re]defines the system variable HOME on its run; This is not an answer, but a guess: Could it be that your interactive shell uses one setting, and the non-interactive shell uses another? I'm only guessing here, I don't know much about Windows administration; I just remember bei

[NTG-context] System variable HOME

2012-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it seems that Ctx [re]defines the system variable HOME on its run; compare: - command line: " C:\Lukas\Jobs\HubI-ISK.DSP\SO_210\Statics.Tx>set home Home=C:\Lukas HOMEDRIVE=C: HOMEPATH=\Documents and Settings\LPR " - and result of: t-Home.mkiv \starttext \directlua{context(os.get