summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2015-09-10 07:55:47 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2015-09-10 07:55:47 +0000
commitd6daef3a658568116139bd1b33b00599207157f0 (patch)
tree8ce4992a900b4c33365ba7dd12b055d2d9a91164
parent659ec263572821f752f87ea4f7e4c13fcdd20461 (diff)
More slash flipping for the sake of vbscript ans UNC paths
git-svn-id: svn://tug.org/texlive/trunk@38336 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/w32_wrapper/runscript.tlu6
-rwxr-xr-xMaster/bin/win32/runscript.tlu6
2 files changed, 10 insertions, 2 deletions
diff --git a/Build/source/texk/texlive/w32_wrapper/runscript.tlu b/Build/source/texk/texlive/w32_wrapper/runscript.tlu
index 526120e2a2a..0655fae3077 100755
--- a/Build/source/texk/texlive/w32_wrapper/runscript.tlu
+++ b/Build/source/texk/texlive/w32_wrapper/runscript.tlu
@@ -249,6 +249,8 @@ local docstr = [[
- fix for argument duplication in fmtutil
2015/04/12
- handle fmtutil-sys via fmtutil --sys
+ 2015/09/10
+ - more slash flipping for the sake of vbscript and unc paths
]]
-- HELPER SUBROUTINES --
@@ -645,7 +647,9 @@ if not ARGV then
arg[0] = progfullname
else
ARGV = extension_map[ext] or assert(shebang_to_argv(progfullname))
- table.insert(ARGV, _q(progfullname))
+ -- [w|c]script, for one, mistakes a forward-slashed UNC script path
+ -- for an option even when quoted
+ table.insert(ARGV, _q(progfullname:gsub('/','\\')))
if not ARGV[0] then
ARGV[0], ARGV[1] = assert(check_command(ARGV[1], PATH))
end
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index 22c5f94d331..198884fab6f 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -249,6 +249,8 @@ local docstr = [[
- fix for argument duplication in fmtutil
2015/04/12
- handle fmtutil-sys via fmtutil --sys
+ 2015/09/10
+ - more slash flipping for the sake of vbscript and unc paths
]]
-- HELPER SUBROUTINES --
@@ -645,7 +647,9 @@ if not ARGV then
arg[0] = progfullname
else
ARGV = extension_map[ext] or assert(shebang_to_argv(progfullname))
- table.insert(ARGV, _q(progfullname))
+ -- [w|c]script, for one, mistakes a forward-slashed UNC script path
+ -- for an option even when quoted
+ table.insert(ARGV, _q(progfullname:gsub('/','\\')))
if not ARGV[0] then
ARGV[0], ARGV[1] = assert(check_command(ARGV[1], PATH))
end