System queries with Lua: l3sys-query

Joseph Wright joseph at texdev.net
Wed Mar 6 07:12:21 CET 2024


On 06/03/2024 00:01, David Carlisle wrote:
> --all enables .files in the current directory being read.
>
> If the current directory has foo.tex and .foo then .foo is not listed
> unless --all is used
>
>
> $ ./l3sys-query.lua ls '*foo*'
> ./foo.tex
>
> $ ./l3sys-query.lua ls --all '*foo*'
> ./.foo
> ./foo.tex
>
> If openin_any = p is in force the calling tex system wouldn't be able to
> read .foo but (currently at least)  it shows in the directory listing.
> I think that's compatible with openin_any=p (which actually is in force
> above) otherwise we would (I think) have to add a call to
> kpsewhich -var-value 'openin_any'
> to disable --all in that case.

Er ..

\documentclass{article}
\begin{document}

\input{}

\end{document}

gives

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024)
(preloaded format=pdflatex)
  restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./test.aux) (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/.tex
File ignored) (./test.aux) )
No pages of output.
Transcript written on test.log.

as expected, so it does read ".tex" (which is 'not hidden, just oddly
named').

Joseph







More information about the tex-live mailing list.