multiple batch calls in a batch file



Hi,
I wonder if someone can explain why this script fails to execute the
second `batch' statement?

This is the script, ex.mac:
n : 2;
batch("ex2.mac");
batch("ex3.mac");


This is what maxima does:

(%i1) batch("ex.mac");

batching #p/home/lbutler/research-laptop/research/toda/toda-c/ex.mac
(%i2) n:2
(%o2) 2
(%i3) batch("ex2.mac")

batching #p/home/lbutler/research-laptop/research/toda/toda-c/ex2.mac
(%i4) m:n^2
(%o4) 4

and maxima returns to a command prompt at this point.

(%i5) build_info();

Maxima version: 5.18.0
Maxima build date: 14:9 4/14/2009
host type: i686-pc-linux-gnu
lisp-implementation-type: GNU Common Lisp (GCL)
lisp-implementation-version: GCL 2.6.8


Leo

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.