[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: f.close() vs f:close()
- From: Peter Aronoff <telemachus@...>
- Date: Thu, 2 Feb 2017 10:42:55 -0500
Viacheslav Usov <via.usov@gmail.com> wrote:
> Ah, thanks. So technically this works as documented. But then the
> standard output cannot be closed. Something is not right here.
I’m not sure I follow, but I’ve always understood closing stdout to be
a bad idea (TM). Instead, the norm is to (temporarily) redirect stdout to
/dev/null or the like.
To put that another way, why do you want to close stdout?
P
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System