View Issue Details

IDProjectCategoryView StatusLast Update
0000363luatexluatex bugpublic2010-04-03 18:01
ReporterTaco Assigned ToTaco  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.52.0 
Fixed in Version0.60.0 
Summary0000363: dofile(nil) in batchmode
Description
From Manuel:

As I understand it, \batchmode disables all interaction, including reading
things from standard input. So, I wonder if dofile() without arguments shouldn't
result in an error rather than hang forever.

Also, in non-batch modes, it would be nice to have some indication that luatex
is waiting for some input.

Of course these are details, but I just lost 15 minutes trying to understand why
one of my loops wouldn't properly terminate before I noticed the dofile() right
before the loop. (Yeah, I know, assert() is my friend.)
Steps To ReproduceIn --ini mode:

\input plain
\directlua{ dofile() }

\bye
TagsNo tags attached.

Activities

Taco

2010-03-27 08:48

administrator   ~0000507

Two commits done:

3554 adds an assert()-style failure return for dofile(<nil>) and loadfile(<nil>)
in batchmode non-luaonly runs,

3555 adds a prompt ("lua>") for dofile(<nil>) and loadfile(<nil>)
in non-batchmode non-luaonly runs,

Issue History

Date Modified Username Field Change
2010-03-27 08:24 Taco New Issue
2010-03-27 08:24 Taco Status new => assigned
2010-03-27 08:24 Taco Assigned To => Taco
2010-03-27 08:48 Taco Note Added: 0000507
2010-03-27 08:48 Taco Status assigned => resolved
2010-03-27 08:48 Taco Resolution open => fixed
2010-04-03 18:00 Taco Fixed in Version => 0.60.0
2010-04-03 18:01 Taco Status resolved => closed