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

context at vivaldi.net context at vivaldi.net
Sun May 10 14:33:41 CEST 2020


Hello, Hans,

I've just renewed the Ctx Beta installation, but 'environment.oldhome' 
seems be unavailable.

Was I "too quick" with renewing Ctx?

Testing sample:

----
\starttext
   Ahoj
   \startluacode
     context(environment.oldhome or "??")
   \stopluacode
\stoptext
----

- prints "??".

I also attache the "status-of-update.lua" and the batch 
"first-setup.bat" (maybe a bit obsolete, but working so far) I used to 
renew Ctx.

Also result of "dir /s" is available here (~84 k packed):

   http://leteckaposta.cz/302654804

What am I doing wrong?

Best regards,

Lukas


On 2020-05-08 14:18, Hans Hagen wrote:

> You can check it. Btw, when you're using lmtx there should be no real
> differences between for instance unix and windows, although on windows
> lmtx does support wide characters in environment variables, command
> line arguments, filenames, filelinks etc. (not that that matters much
> as one will seldom use more than ascii). Specific environment
> variables like HOME are a bit tricky on windows as they come in
> variants, so let me know if some more magic is needed.
> 
> Hans
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChkEnv.mkiv
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200510/86388e7b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChkEnv.pdf
Type: application/pdf
Size: 5720 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200510/86388e7b/attachment.pdf>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: status-of-update.lua
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200510/86388e7b/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first-setup.ba~
Type: text/x-msdos-batch
Size: 1079 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200510/86388e7b/attachment.bin>


More information about the ntg-context mailing list