On Sat, Dec 11, 2010 at 1:36 AM, Gabriel Dos Reis gdr@integrable-solutions.net wrote:
With the new version, when I do
echo '(format nil "version=~a" (lisp-implementation-version))' | ./abcl --noinform
I get something on the standard as expected. However, if I add --batch then nothing is printed -- i.e. when using FORMAT.
If I do
echo '(prog (format nil "version=~a" (lisp-implementation-version)) (quit))' | ./abcl
only the prompt is printed, not the result.
That's because (format nil ...) prints to a string, not to *standard-output*. You want (format t ...) instead.
Bye Alessio