[latex3-commits] [git/LaTeX3-latex3-l3build] spaces: Never implicitly escape spaces (0f2db3e)

Marcel Fabian Krüger tex at 2krueger.de
Tue Apr 19 18:21:15 CEST 2022


Repository : https://github.com/latex3/l3build
On branch  : spaces
Link       : https://github.com/latex3/l3build/commit/0f2db3eaa04723ea2e00ab6c84e7d745455db3aa

>---------------------------------------------------------------

commit 0f2db3eaa04723ea2e00ab6c84e7d745455db3aa
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Apr 19 18:21:15 2022 +0200

    Never implicitly escape spaces


>---------------------------------------------------------------

0f2db3eaa04723ea2e00ab6c84e7d745455db3aa
 l3build-file-functions.lua |  2 +-
 l3build.lua                | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index 841c055..17f0bd8 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -177,7 +177,7 @@ function abspath(path)
   if ok then
     local result = currentdir()
     chdir(oldpwd)
-    return escapepath(gsub(gsub(result,"^\\\\%?\\",""), "\\", "/"))
+    return gsub(gsub(result,"^\\\\%?\\",""), "\\", "/")
   end
   error(msg)
 end
diff --git a/l3build.lua b/l3build.lua
index 72d67d2..985b86a 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -93,21 +93,6 @@ end
 -- comes after any user versions
 build_require("variables")
 
--- Ensure that directories are 'space safe'
-maindir       = escapepath(maindir)
-docfiledir    = escapepath(docfiledir)
-sourcefiledir = escapepath(sourcefiledir)
-supportdir    = escapepath(supportdir)
-testfiledir   = escapepath(testfiledir)
-testsuppdir   = escapepath(testsuppdir)
-builddir      = escapepath(builddir)
-distribdir    = escapepath(distribdir)
-localdir      = escapepath(localdir)
-resultdir     = escapepath(resultdir)
-testdir       = escapepath(testdir)
-typesetdir    = escapepath(typesetdir)
-unpackdir     = escapepath(unpackdir)
-
 -- Tidy up the epoch setting
 -- Force an epoch if set at the command line
 -- Must be done after loading variables, etc.





More information about the latex3-commits mailing list.