[latex3-commits] [git/LaTeX3-latex3-l3build] master: Need a literal path here (see #76) (d658109)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Oct 29 23:44:41 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/d65810917b987bcdac79e94831b642166353eff2

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

commit d65810917b987bcdac79e94831b642166353eff2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Oct 29 22:44:41 2018 +0000

    Need a literal path here (see #76)


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

d65810917b987bcdac79e94831b642166353eff2
 CHANGELOG.md               |    4 ++++
 l3build-file-functions.lua |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a7c03cc..1b5be53 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+
+- Substitution of spaces in Unix paths (see #76)
+
 ## [2018-10-25]
 
 ### Added
diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index bf5ce87..cc1bef6 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -194,7 +194,7 @@ function escapepath(path)
   else
     path = gsub(path,"\\ ","[PATH-SPACE]")
     path = gsub(path," ","\\ ")
-    return gsub(path,"[PATH-SPACE]","\\ ")
+    return gsub(path,"%[PATH-SPACE%]","\\ ")
   end
 end
 





More information about the latex3-commits mailing list