[armedbear-devel] Environment not found
Alessio Stalla
alessiostalla at gmail.com
Sat Dec 11 00:41:10 UTC 2010
On Sat, Dec 11, 2010 at 1:36 AM, Gabriel Dos Reis
<gdr at 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
More information about the armedbear-devel
mailing list