Hi,
is it possible that LaTeX3 maintains a stack which holds the \input
files?  TeX3 provides a primitive \inputlineno but I'd like to have a
macro \inputfile which expands to the name of the file that is
currently read.

It's quite similar to \@currenvir (and might share some code).

This is very useful if one has to pass information from LaTeX to
another program.

Regards,
  Reinhard

--
----------------------------------------------------------------------------
Reinhard Kotucha                                     Phone: +49-511-27060390
Marschnerstr. 25
D-30167 Hannover                              mailto:[log in to unmask]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------