summaryrefslogtreecommitdiff
path: root/Master/bin/win32
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 /Master/bin/win32
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
Diffstat (limited to 'Master/bin/win32')
-rwxr-xr-xMaster/bin/win32/runscript.tlu6
1 files changed, 5 insertions, 1 deletions
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