From d6daef3a658568116139bd1b33b00599207157f0 Mon Sep 17 00:00:00 2001 From: Siep Kroonenberg Date: Thu, 10 Sep 2015 07:55:47 +0000 Subject: 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 --- Build/source/texk/texlive/w32_wrapper/runscript.tlu | 6 +++++- Master/bin/win32/runscript.tlu | 6 +++++- 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 -- cgit v1.2.3