diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2008-07-10 09:59:55 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2008-07-10 09:59:55 +0000 |
commit | 1c7f172eca48842ba65a3b1069c92059832bf3cb (patch) | |
tree | 2a1b73b811cd6370214dff69d87772f8056c5f4e /Master/texmf-dist/tex/context/base | |
parent | db1a50b1997160072eee7c4fccccd3e0c145411c (diff) |
support tilde expansion in context mkiv
git-svn-id: svn://tug.org/texlive/trunk@9426 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base')
-rw-r--r-- | Master/texmf-dist/tex/context/base/luat-inp.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/luat-inp.lua b/Master/texmf-dist/tex/context/base/luat-inp.lua index 63dc1d904fc..d758227c1bd 100644 --- a/Master/texmf-dist/tex/context/base/luat-inp.lua +++ b/Master/texmf-dist/tex/context/base/luat-inp.lua @@ -1042,7 +1042,10 @@ function input.expand_variables(instance) end if not busy then break end end + local homedir = + instance.environment[(os.type == "windows" and 'USERPROFILE') or 'HOME'] or '~' for k,v in pairs(instance.expansions) do + v = v:gsub("^~", homedir) instance.expansions[k] = v:gsub("\\", '/') end end |