Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
On 2010-07-22 <11:55:38>, Hans Hagen wrote: > On 22-7-2010 11:51, Philipp Gesang wrote: > >Hi all, > > > >what would be an elegant way to make out the current interpreter from inside > >lua? > > > >For now I'm branching things at the top of the script like this: > > > >···8<

Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Hans Hagen
On 22-7-2010 11:51, Philipp Gesang wrote: Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8<·· if arg[-1] == "te

[NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8<·· if arg[-1] == "texlua" then utf=unicode.utf8 else req