<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 5, 2015 at 6:51 PM, David Carlisle <span dir="ltr"><<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The manual lists \pdfshellescape (which used to be 0 1 or 2 depending<br>
if shell escape was allowed or not) as having been dropped as it can<br>
be implemented in lua.<br>
<br>
Is there a recommended implementation of this?<br>
<br>
I'd hoped to just see a lua value in the status library or some place<br>
set to 0,1,2 as before (or even a \pdfvariable type thing) but it<br>
seems that the only options are to<br>
<br>
look at<br>
kpse.var_value("shell_escape") -- for texmf.cnf settings<br>
texconfig.shell_escape -- for lua initialization settings and<br>
arg array for the commandline<br>
and re-do the merging of these to determine whether os.execute is<br>
allowed or restricted?<br>
<br>
or to try running os.execute and testing the result?<br>
<br>
but I was looking to avoid calling os.execute if it was prevented by<br>
the current settings.<br>
<br>
<br>
any hints welcome:-)<br>
<span class=""><font color="#888888"><br>
David<br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>try<br><br clear="all"><div><div>\directlua{print('os.execute():|',os.execute(),'|')}</div><div>\bye</div></div><div><br></div><div>with also </div><div>--shell-restricted<br></div><div><div>--no-shell-escape</div><div><br></div></div><div>It should be ok.</div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>