aimaint@utai.UUCP (Andrew Gullen) (12/19/85)
Problem with saved Franz images under 4.2bsd :
There is a problem with saved images under Franz Lisp, at least up to
Opus 38.91 . When a saved executable is started, the initialization code
fails to clear the buffer for the standard input. The result is that
if the standard input was directed to a file at the time the dumplisp
was executed, the reborn image may read s-expressions which followed
the dumplisp call in the file. For example, if the file myfile.l
contained
(progn (patom "Before dumplisp") (terpri))
(dumplisp /scr/demo)
(progn (patom "After dumplisp") (terpri))
then the shell command
lisp <myfile.l
will create an executable in /scr/demo which on invocation will print
After dumplisp
as its first action. The obvious workaround, when the shell command is in
a shell file, is to substitute
lisp <<EOF-MARKER
(include myfile)
EOF-MARKER
Andrew Gullen
(aimaint@toronto.csnet)