System queries with Lua: l3sys-query

David Carlisle d.p.carlisle at
Fri Mar 8 01:07:08 CET 2024

On Thu, 7 Mar 2024 at 23:56, Karl Berry <karl at> wrote:

>     texosquery won't show any dot files or any symlink to a dot file with
>     openin_any = r (or p)
> Ah. Sorry I failed to test correctly. That behavior sounds sensible to me.
> Ok, Joseph/David?

I think that's the wrong behaviour to be honest: I think that files should
be listed
but not opened

as far as I can see texosquery can't list the current directory if
openin_any is p
as it won't accept .  that is more restrictive than \input which lets you
always \input ./foo.tex
. isn't a "dotfile" in that sense.

Currently we are struggling with a bigger problem that the script works
well with --shell-escape
but doesn't work at all with restricted shell escape as that doesn't allow
any quotes at all (which seems unfortunate)
for \write18 you can use double quotes (which get turned to single) but for
the | syntax double quotes are used for space quoting
so there is nothing else available. We can work around it (probably) but
making something that works with and without shell escape
for windows and not windows requires extensive juggling while walking on a

Especially as \input now has the \input{...} braced form so the double
quoted name syntax isn't really needed it would be good
to allow \input{|ls "*.tex"}  at least.  Or in fact _any_ syntax that
worked the same way in restricted and unrestricted shell escape.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the tex-live mailing list.