ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: context@vivaldi.net
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Retrieving original value of enviroment variable HOME
Date: Mon, 11 May 2020 17:57:33 +0200	[thread overview]
Message-ID: <406fa33b3cd3d4c8ffe20ab3e276de87@vivaldi.net> (raw)
In-Reply-To: <7ce70395-c26e-5e68-ae30-00c50e253a7a@xs4all.nl>

[-- Attachment #1: Type: text/plain, Size: 5141 bytes --]

Hello Hans,

so I updated to latest ConTeXt (thanks Marco and Henning) but there is 
still a problem - see:

----
d:\Lukas\ConTeXt\Test\EnvHome>set HOME=DummyHome

d:\Lukas\ConTeXt\Test\EnvHome>set 
PATH=d:\Ctx-Beta\tex\texmf-mswin\bin;%PATH%

d:\Lukas\ConTeXt\Test\EnvHome>echo %HOME%
DummyHome

d:\Lukas\ConTeXt\Test\EnvHome>echo %PATH%
d:\Ctx-Beta\tex\texmf-mswin\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program 
Files\Intel\DMIX;C:\Program Fi
rosoft SQL Server\90\Tools\binn\;C:\Program Files\Git\cmd

d:\Lukas\ConTeXt\Test\EnvHome>findfile context.exe
d:\Ctx-Beta\tex\texmf-mswin\bin\context.exe

d:\Lukas\ConTeXt\Test\EnvHome>context.exe EnvHome.mkiv --once

resolvers       | formats | executing runner 'run luatex format': 
d:/Ctx-Beta/tex/texmf-mswin/bin/luatex --jobname="EnvHome" 
--fmt=d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f
This is LuaTeX, Version 1.13.0 (TeX Live 2020/W32TeX)
  system commands enabled.
open source     > level 1, order 1, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2020.05.08 20:46 MKIV beta  fmt: 
2020.5.11  int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'EnvHome', input './EnvHome.mkiv', 
result 'EnvHome'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name 
'd:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
1       C:/Users/u×ivatel
2       C:/Users/u×ivatel
3       C:/Users/u×ivatel
4       C:/Users/u×ivatel
backend         > xmp > using file 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 3, name 
'd:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv'
close source    > level 1, order 3, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: 
selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 0 scans 
with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned 
paths: <none>
mkiv lua stats  > stored bytecode data: 452 modules (0.232 sec), 93 
tables (0.012 sec), 545 chunks (0.244 sec)
mkiv lua stats  > traced context: maxstack: 1407, freed: 0, unreachable: 
1407
mkiv lua stats  > cleaned up reserved nodes: 57 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 11 attribute, 4 attribute_list, 1 
glue, 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 
instances (re)created, 38 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds 
loading
mkiv lua stats  > callbacks: internal: 134, file: 146, direct: 6, late: 
0, function 501, total: 787
mkiv lua stats  > result saved in file: EnvHome.pdf, compresslevel 3, 
objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 7 
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load 
time 0.198 seconds
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: 
texmf-mswin
mkiv lua stats  > used engine: luatex version: 1.13, functionality 
level: 7353, banner: this is luatex, version 1.13.0 (tex live 
2020/w32tex)
mkiv lua stats  > control sequences: 45940 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 68 MB, 
ctx: 67 MB, max: unknown MB, hash chars: min(32,40), symbol mask: utf 
(τεχ)
mkiv lua stats  > runtime: 0.522 seconds, 1 processed pages, 1 shipped 
pages, 1.916 pages/second
system          | total runtime: 0.823 seconds

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?

Lukas


On 2020-05-11 10:51, Hans Hagen wrote:
> Hi,
> 
>> system          > ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 
>> 2020.5.10  int: english/english
> 
>> Did I updated ConTeXt correctly?
> Well, you made a fresh format, but use a version from january, so ...
> 
> Hans

[-- Attachment #2: EnvHome.log --]
[-- Type: text/plain, Size: 6897 bytes --]

open source     > level 1, order 1, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2020.05.08 20:46 MKIV beta  fmt: 2020.5.11  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'EnvHome', input './EnvHome.mkiv', result 'EnvHome'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name 'd:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 3, name 'd:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv'
close source    > level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system          > start used files

system          > text: EnvHome

system          > stop used files


system          > start used files

system          >    1: filename=char-prv.lua filetype=tex format=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system          >    2: filename=cont-yes.mkiv filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system          >    3: filename=publ-imp-default.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system          >    4: filename=cont-new.mkiv filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system          >    5: filename=lang-exc.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system          >    6: filename=lang-us.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system          >    7: filename=d:\Lukas\ConTeXt\Test\EnvHome/EnvHome.mkiv foundname=d:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv fullname=d:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv usedmethod=direct
system          >    8: filename=lm.lfg filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system          >    9: filename=lmroman12-regular filetype=otf format=otf foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system          >   10: filename=latinmodern-math.otf filetype=opentypefonts foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system          >   11: filename=pdftex.map filetype=map format=map foundname=d:/Ctx-Beta/tex/texmf/fonts/map/pdftex/plain/pdftex.map fullname=d:/Ctx-Beta/tex/texmf/fonts/map/pdftex/plain/pdftex.map usedmethod=database
system          >   12: filename=lpdf-pdx.xml filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system          > stop used files


system          > start commandline options

system          > currentrun="1"
system          > fulljobname="./EnvHome.mkiv"
system          > input="./EnvHome.mkiv"
system          > kindofrun="3"
system          > maxnofruns="1"
system          > once="true"
system          > texmfbinpath="d:/Ctx-Beta/tex/texmf-mswin/bin"

system          > stop commandline options


system          > start commandline files

system          >    1: ./EnvHome.mkiv

system          > stop commandline files


modules         > start used modules


modules         > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 452 modules (0.232 sec), 93 tables (0.012 sec), 545 chunks (0.244 sec)
mkiv lua stats  > traced context: maxstack: 1407, freed: 0, unreachable: 1407
mkiv lua stats  > cleaned up reserved nodes: 57 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 11 attribute, 4 attribute_list, 1 glue, 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances (re)created, 38 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 134, file: 146, direct: 6, late: 0, function 501, total: 787
mkiv lua stats  > result saved in file: EnvHome.pdf, compresslevel 3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.198 seconds 
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: texmf-mswin
mkiv lua stats  > used engine: luatex version: 1.13, functionality level: 7353, banner: this is luatex, version 1.13.0 (tex live 2020/w32tex)
mkiv lua stats  > control sequences: 45940 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 68 MB, ctx: 67 MB, max: unknown MB, hash chars: min(32,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.522 seconds, 1 processed pages, 1 shipped pages, 1.916 pages/second


[-- Attachment #3: EnvHome.mkiv --]
[-- Type: text/plain, Size: 206 bytes --]

\starttext
  Ahoj
  \ctxlua{print("1",environment.homedir)}
  \ctxlua{print("2",environment.oldhome)}
  \ctxlua{print("3",os.getenv("HOME"))}
  \ctxlua{print("4",os.getenv("USERPROFILE"))}
\stoptext

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2020-05-11 15:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06 15:43 context
2020-05-07  6:54 ` Hans Hagen
2020-05-07 10:30   ` context
2020-05-08 12:18     ` Hans Hagen
2020-05-10 12:33       ` context
2020-05-10 15:20         ` Hans Hagen
2020-05-11  7:44           ` context
2020-05-11  8:51             ` Hans Hagen
2020-05-11 10:50               ` context
2020-05-11 10:54                 ` Henning Hraban Ramm
2020-05-11 13:36                   ` Henning Hraban Ramm
2020-05-11 10:58                 ` Marco Patzer
2020-05-11 15:20                   ` context
2020-05-11 15:57               ` context [this message]
2020-05-12  8:53                 ` Hans Hagen
2020-05-12  9:36                   ` context
2020-05-12 11:53                     ` Hans Hagen
2020-05-14  7:47                       ` context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=406fa33b3cd3d4c8ffe20ab3e276de87@vivaldi.net \
    --to=context@vivaldi.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).