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
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.