<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.</blockquote><blockquote>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</blockquote><blockquote>kpsewhich -var-value 'openin_any'</blockquote><blockquote>to disable --all in that case.</blockquote><div><br></div>or using the lua interface rather than calling the command</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr"> kpse.set_program_name("kpsewhich")<br>  if (kpse.var_value('open_in') ~= 'a')<br>  then<br>     is_all=false<br>  end</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>