On Mon, Nov 7, 2011 at 11:13 PM, Oliver Kullmann
<O.Kullmann at swansea.ac.uk>wrote:
> Would be good if also the input would appear (and a concluding end-of-line
> after closefile() would likely also be good).
>
I am afraid this is Maxima's fault. For some reason it is reading for a
stream other than *standard-input* and does not allow the lisp to change
that value. Without this, dribble may not work. See below:
Maxima 5.25post http://maxima.sourceforge.net
using Lisp ECL 11.1.1
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) :lisp (trace mread)
(MREAD)
(%i1) 3;
1> (MREAD #<input stream "stdin"> (NIL))
<1 (MREAD ((DISPLAYINPUT (0 "stdin" SRC)) NIL 3))
(%o1) 3
(%i2) :lisp (defparameter *my-echo* (make-echo-stream *standard-input*
*standard-output*))
*MY-ECHO*
(%i2) :lisp (setf *standard-input* *my-echo*)
#<echo stream 0000000004b53e60>
(%i2) 4;
1> (MREAD #<input stream "stdin"> (NIL))
<1 (MREAD ((DISPLAYINPUT (0 "stdin" SRC)) NIL 4))
(%o2) 4
--
Instituto de F?sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com