segmentation fault with Maxima/ECL



On 8 Sep 2008 Oliver Kullmann wrote:

>I have to use "batch" to see what happens.
>Now the two attached files show to nasty
>bugs.
>Where in Batch.mac we have

>for x in [1,2,3] do print(x); 
>
>(with an additional space after the semicolon).

Try your batch files with a dollar sign $ at the
end instead of the semicolon.

Here are two batch files b.mac and u.mac with
a record of run for each:

/* file b.mac  */

for x in [1,2,3] do print(x)$

=================
run:
==============
(%i1) batch(b);
batching #pc:/work3/b.mac
(%i2)                   for x in [1, 2, 3] do print(x)
1 
2 
3 
(%i3) 

=========================
/* file u.mac */

fun(found) := for x in [1,2,3] unless found do print(x)$

======================
run
==================
(%i5) batch(u);
batching #pc:/work3/u.mac
(%i6)      fun(found) := for x in [1, 2, 3] unless found do print(x)
(%i7) 
=====================
Ted Woollett
(this is with windows xp, serv pack3
maxima ver 5.16.1)