Hello, how to tell Gambit to use the standard output for "pp" and the standard error for "raise"? $ cat test.scm (display "line1\n") (pp "line2") (raise "error") $ gsi test.scm >x1 2>x2 "line2" *** ERROR IN "test.scm"@3.1 -- This object was raised: "error" $ The expected behaviour is that nothing is output to the console, the file "x1" contains "line1" and "line2", and the file "x2" contains the error message. Thanks! -- Oleg Parashchenko olpa@ http://uucode.com/ http://uucode.com/blog/ XML, TeX, Python, Mac, Chess
Afficher les réponses par date
Hello again, ...
$ gsi test.scm >x1 2>x2 "line2" *** ERROR IN "test.scm"@3.1 -- This object was raised: "error" $
Seems the option "-:d-" helps me: $ gsi -:d- test.scm >x1 2>x2 $ cat x1 line1 "line2" *** ERROR IN "test.scm"@3.1 -- This object was raised: "error" $ cat x2 $ -- Oleg Parashchenko olpa@ http://uucode.com/ http://uucode.com/blog/ XML, TeX, Python, Mac, Chess
participants (1)
-
Oleg Parashchenko