Hi Hans,

I think I might have found the source of the bug...

On Sat, Jun 7, 2008 at 10:56 PM, Burak Emir <burak.emir@gmail.com> wrote:

Burak-Emirs-MacBook-Pro:/tmp/testlua.b buraq$ . /usr/local/context/tex/setuptex /usr/local/context/tex
Setting "/usr/local/context/tex" as TEXROOT.
Burak-Emirs-MacBook-Pro:/tmp/testlua.b buraq$ context test.tex
MtxRun | loading configuration for /usr/local/context/tex/texmf/web2c from /usr/local/context/tex/texmf-cache/luatex-cache/context/f70b0d481875d119766efabfbdb61af7/trees/01ff2a12d1aaf66ed1ecab879ab73b31

...ex/texmf-context/scripts/context/lua/mtx-context.lua:563: attempt to index local 'ctxdata' (a nil value)

So ctxdata is not there ('a nil value')... if you look at line 563, you see (this line is not indented like the others):

    563 ctxdata.flags.inputfile = filename -- is this right

Two observations:
* I think the answer to the comment is "no" :-D
* just a bit further up, lines 526-531, there is code that explicitly asks whether ctxdata is there...

    526     if ctxdata then
    527         -- todo: interface
    528         for k,v in pairs(ctxdata.flags) do
    529             environment.setargument(k,v)
    530         end
    531     end

I don't know lua, but it seems that ctxdata being absent is possible, and the problem could be fixed by account for the case that ctxdata is not set...  what do you think?

Burak
--
Burak Emir
--
http://burak.emir.googlepages.com