Author: Stan Eisenstat
Subject: Re: [Cs323] stderr
Date: Sunday, 18 Oct 2020, 20:36:18
> Message Posted By: Unknown
>
> Does "print("invalid expression", file=sys.stderr)" correctly print to
> stderr? also, how can we check stderr on a given test case in the public
> test cases?
Yes, as you can verify by redirecting stdout to /dev/null
as in
% ./mcBash > /dev/null
(but beware that the prompts will also be redirected).
Test #10 offers a different approach based on redirecting
stderr to a file.
--Stan-
PREV
INDEX
NEXT