diff options
author | Marius <mariausol@gmail.com> | 2011-10-03 11:00:13 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-10-03 11:00:13 +0300 |
commit | dac8b3d4c89eab191488cf107ada8c16570579cf (patch) | |
tree | 1a939a2c95135872ccf66e9d453b2dbd1b8ba1ee /scripts | |
parent | e1bf359128771691941392be0be499985e249370 (diff) | |
download | context-dac8b3d4c89eab191488cf107ada8c16570579cf.tar.gz |
beta 2011.10.03 09:34
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtxrun.lua | 5 | ||||
-rw-r--r-- | scripts/context/stubs/mswin/mtxrun.lua | 5 | ||||
-rw-r--r-- | scripts/context/stubs/unix/mtxrun | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index c5232a6d3..b8c1cc587 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -10637,6 +10637,11 @@ end -- return resolvers.cleanpath(str) -- end +local cleanup = lpeg.replacer { + { "!" , "" }, + { "\\" , "/" }, +} + function resolvers.cleanpath(str) -- tricky, maybe only simple paths local doslashes = (P("\\")/"/" + 1)^0 local donegation = (P("!") /"" )^0 diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index c5232a6d3..b8c1cc587 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -10637,6 +10637,11 @@ end -- return resolvers.cleanpath(str) -- end +local cleanup = lpeg.replacer { + { "!" , "" }, + { "\\" , "/" }, +} + function resolvers.cleanpath(str) -- tricky, maybe only simple paths local doslashes = (P("\\")/"/" + 1)^0 local donegation = (P("!") /"" )^0 diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index c5232a6d3..b8c1cc587 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -10637,6 +10637,11 @@ end -- return resolvers.cleanpath(str) -- end +local cleanup = lpeg.replacer { + { "!" , "" }, + { "\\" , "/" }, +} + function resolvers.cleanpath(str) -- tricky, maybe only simple paths local doslashes = (P("\\")/"/" + 1)^0 local donegation = (P("!") /"" )^0 |