From 79a45c2d99b673a3cdb3e4b473cbee3dbf6723af Mon Sep 17 00:00:00 2001 From: Piotr Strzelczyk Date: Tue, 15 Dec 2009 01:16:12 +0000 Subject: one more fix for wrapper git-svn-id: svn://tug.org/texlive/trunk@16411 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/texlive/w32_wrapper/runscript.tlu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/texlive/w32_wrapper/runscript.tlu b/Build/source/texk/texlive/w32_wrapper/runscript.tlu index 534c0babc7b..785e5e742aa 100644 --- a/Build/source/texk/texlive/w32_wrapper/runscript.tlu +++ b/Build/source/texk/texlive/w32_wrapper/runscript.tlu @@ -94,7 +94,7 @@ end -- searches the PATH variable for a file local function search_path(fname, PATH, PATHEXT) if string.find(fname, '[/\\]') then - return nil, "not searching absolute or relative path: "..fname + return nil, "directory part not allowed for PATH search: "..fname end PATH = PATH or os.getenv('PATH') PATHEXT = PATHEXT or '\0' @@ -105,7 +105,7 @@ local function search_path(fname, PATH, PATHEXT) if lfs.isfile(f) then return f, ext end end end - return nil, "file not found: "..fname + return nil, "file not on PATH: "..fname end -- locates texmfscript to execute @@ -298,8 +298,7 @@ else -- general case (no alias) arg[0] = progfullname program = progfullname else - program = (ext ~= '') and extension_map[ext] or - assert(shebang_to_argv(progfullname)) + program = extension_map[ext] or assert(shebang_to_argv(progfullname)) table.insert(program, _q(progfullname)) table.insert(program, argline) program[0] = program[0] or assert(check_command(program[1], PATH)) -- cgit v1.2.3