[latex3-commits] [latex3/l3sys-query] 2e: Interpret "." as equal to "*" as arg. to ls (c8d8a04)

github at latex-project.org github at latex-project.org
Sun Mar 10 21:27:21 CET 2024


Repository : https://github.com/latex3/l3sys-query
On branch  : 2e
Link       : https://github.com/latex3/l3sys-query/commit/c8d8a0467d4ac50b2f77bdd4cd4258ad101fd325

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

commit c8d8a0467d4ac50b2f77bdd4cd4258ad101fd325
Author: Joseph Wright <joseph at texdev.net>
Date:   Sun Mar 10 19:32:28 2024 +0000

    Interpret "." as equal to "*" as arg. to ls


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

c8d8a0467d4ac50b2f77bdd4cd4258ad101fd325
 l3sys-query.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3sys-query.lua b/l3sys-query.lua
index 7eb1db6..deafc60 100755
--- a/l3sys-query.lua
+++ b/l3sys-query.lua
@@ -433,7 +433,7 @@ end
 -- Lua pattern, and then to do a listing.
 cmd_desc.ls = "Prints a listing based on the <args> and <options>"
 function cmd_impl.ls(arg_list)
-  if not arg_list or arg_list == "" then
+  if not arg_list or arg_list == "" or arg_list = "." then
     arg_list = "*"
   end
   -- Look for absolute paths or any trying to leave the confines of the current





More information about the latex3-commits mailing list.