Arthur Reutenauer wrote:
   luatools --generate
   This is luaTeX, Version 3.141592-beta-0.10.2-2007090506 (Web2C 7.5.6)
   **
   <I have to Control-D out here>
    

  That is not normal. luatools --generate should not start LuaTeX at all;
I now understand what happened: yesterday you reported you changed the
beginning of luatools to contain:

	#!/bin/sh
	luatex --luaonly=luatools.lua "$@"

  That is not correct. If you want luatex to behave as a lua interpreter
you have to call it with "luatex --luaonly" and no equal sign after it;
simply delete that sign and replace it with a space. Or, alternatively,
alter the first two lines of the script to contain "#!/usr/bin/env texlua"
like originally; what is wrong with it?

	Arthur
  


For some reason, the "#!/usr/bin/env <whatever>" does not seem to work on Solaris 10; I also have to modify texmfstart to use "#!/usr/local/bin/ruby" rather than "#!/usr/bin/env ruby".  However, after removing the "=", I get a different error:

luatools --generate
Missing script file

Even if I try the entire command line as given

texlua --luaonly luatools.lua --generate
Missing script file

So I'm not sure what is happening now, maybe LUAINPUTS or LUATEXDIR is wrong?

env | sort | egrep 'LUA|TEX'
LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/usr/local/texlive/texmf-local/scripts/context/lua}
LUATEXDIR=/usr/local/texlive/texmf-local/scripts/context/lua
TEXMF={/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/usr/local/texlive/2007/texmf-var,/usr/local/texlive/2007/texmf-dist}
TEXMFCACHE=/var/tmp
TEXMFCNF=/usr/local/texlive/2007/texmf/web2c

 luatex --ini --compile cont-en
This is luaTeX, Version 3.141592-beta-0.11.0-2007091309 (Web2C 7.5.6) (INITEX)
(/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex
(/usr/local/texlive/texmf-local/tex/context/base/context.tex
(/usr/local/texlive/texmf-local/tex/context/base/syst-pln.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-prm.tex)
(/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex
! LuaTeX error [string "luas[0]"]:1: attempt to index global 'input' (a nil val
ue).
<argument> ...mf.instance,"luat-env.lua","tex")) }
                                                 
\startruntimeluacode ...everyloadluacode #1}\fi #1
                                                 
l.88 \stopruntimectxluacode
                          
? ^D
! Emergency stop.
<argument> ...mf.instance,"luat-env.lua","tex")) }
                                                 
\startruntimeluacode ...everyloadluacode #1}\fi #1
                                                 
l.88 \stopruntimectxluacode
                          

in use: 109 node words from 500
still untouched: 383 node words
size  2 avail list:     4
size  3 avail list:     3
No pages of output.
Transcript written on cont-en.log.



Mark