[pro] Default behavior of standard output streams
Marco Antoniotti
antoniotti.marco at disco.unimib.it
Tue May 22 09:19:39 UTC 2012
On May 22, 2012, at 10:58 , Didier Verna wrote:
>
> Hello,
>
> there is a discrepancy amongst compilers on how the default output streams
> behave in some situations. Consider the following test case:
>
> (format *standard-output* "This goes to standard output.~%")
> (format *error-output* "This goes to error output.~%")
> (format *query-io* "This goes to query io.~%")
>
>
> Now, launch you favorite Lisp on a terminal and load this file at
> startup in 3 different ways:
>
> myfavoritelisp --the-load-option test.lisp
> myfavoritelisp --the-load-option test.lisp > log
> myfavoritelisp --the-load-option test.lisp > log 2>&1
>
>
> SBCL and CMUCL behave in a way which I think is right:
> case #1: everything is printed on the terminal
> case #2: stdout goes in the file
> case #3: stdout and stderr go in the file (*query-io* stays on the tty)
>
> ECL redirects the output of *query-io* in the file for cases #2 and #3.
> The behavior of stdout and stderr is the same as in SBCL and CMUCL.
>
> Finally, LW, ACL, CLISP, CCL and ABCL redirect everything in the file in
> cases #2 and #3.
>
>
> I'm ready to fill in bug reports for the last 6 compilers, but are these
> really bugs? I'm convinced that it is for stderr, but it may be arguable
> for *query-io*.
>
> WDYT?
>
I think this is the usual story. Behavior should be agreed upon, once the "platform" is given.
MA
--
Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043 http://bimib.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY
Please note that I am not checking my Spam-box anymore.
Please do not forward this email without asking me first.
More information about the pro
mailing list