stderr device number in the manual

Q&A's, tips, howto's

stderr device number in the manual

Postby steloflute » Tue Jan 17, 2017 5:49 pm

In the manual ( http://www.newlisp.org/downloads/newlis ... tml#device ), stderr is not mentioned.
I think 2 is the stderr.

Test code (test.lsp):
Code: Select all
(write-line 2 "stderr")
(println "stdout")
(exit)


Code: Select all
newlisp test.lsp > out.txt

Then, "stderr" is printed to the screen. "stdout" is printed to the file.

Would you please change the manual like so:
int-io-handle is an I/O device number, which is set to 0 (zero) for the default STD I/O pair of handles, 0 for stdin and 1 for stdout.

=>
int-io-handle is an I/O device number, which is set to 0 (zero) for the default STD I/O pair of handles, 0 for stdin, 1 for stdout and 2 for stderr.
steloflute
 
Posts: 13
Joined: Tue Nov 06, 2012 4:02 pm

Re: stderr device number in the manual

Postby Lutz » Wed Jan 18, 2017 5:51 pm

Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests

cron