[latex3-commits] [latex3/l3sys-query] 2e: QueryWorkingDirectory (6532f21)
github at latex-project.org
github at latex-project.org
Mon Mar 11 01:47:00 CET 2024
Repository : https://github.com/latex3/l3sys-query
On branch : 2e
Link : https://github.com/latex3/l3sys-query/commit/6532f2116ef9184c6b68de18e2f5394f2502bf11
>---------------------------------------------------------------
commit 6532f2116ef9184c6b68de18e2f5394f2502bf11
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Mon Mar 11 00:47:00 2024 +0000
QueryWorkingDirectory
>---------------------------------------------------------------
6532f2116ef9184c6b68de18e2f5394f2502bf11
l3sys-query.sty | 6 +++---
test-2e-01.tex | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/l3sys-query.sty b/l3sys-query.sty
index 77efbbd..9895993 100644
--- a/l3sys-query.sty
+++ b/l3sys-query.sty
@@ -6,7 +6,7 @@
% Defines:
-% \QueryPWD {<result>}
+% \QueryWorkingDirectory {<result>}
% defines the command passed in as #1 to be the current working directory
% \QueryFiles[<options>]{<args>}{function}
@@ -20,8 +20,8 @@
\ExplSyntaxOn
-\NewDocumentCommand\QueryPWD {m} {
- \sys_get_query:nnnN {pwd} {} {} #1
+\NewDocumentCommand\QueryWorkingDirectory {m} {
+ \sys_get_query:nN {pwd} #1
}
\NewDocumentCommand\QueryFiles {} {
diff --git a/test-2e-01.tex b/test-2e-01.tex
index 5c00dcd..e168785 100644
--- a/test-2e-01.tex
+++ b/test-2e-01.tex
@@ -3,10 +3,11 @@
-\QueryPWD \thisdir
+\QueryWorkingDirectory \thisdir
\typeout{PWD: \thisdir}
+
\QueryFiles{*.tex}{\typeout{A: #1}}
\QueryFiles[recursive,type=d]{}{\typeout{B: #1}}% . ought to work
More information about the latex3-commits
mailing list.