System queries with Lua: l3sys-query

Joseph Wright joseph at texdev.net
Wed Mar 6 07:34:43 CET 2024


On 06/03/2024 00:21, David Carlisle wrote:
> 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.
>
>
> or using the lua interface rather than calling the command
>
>   kpse.set_program_name("kpsewhich")
>    if (kpse.var_value('open_in') ~= 'a')
>    then
>       is_all=false
>    end
>
>>
>

Changed: I think you mean kpse.var_value('openin_any') :)

Joseph



More information about the tex-live mailing list.