Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exec {_Dbg_new_fd}<>&-
- X-seq: zsh-workers 26135
 
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
 
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
 
- Subject: Re: exec {_Dbg_new_fd}<>&-
 
- Date: Fri, 12 Dec 2008 05:31:15 -0500
 
- In-reply-to: <200812120947.mBC9lplo015442@xxxxxxxxxxxxxx> (Peter Stephenson's message of "Fri, 12 Dec 2008 09:47:51 +0000")
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
 
- References: <6cd6de210812111709l43863baatc4eb728035b8f1f1@xxxxxxxxxxxxxx>	<200812120947.mBC9lplo015442@xxxxxxxxxxxxxx>
 
- Reply-to: gak@xxxxxxxxxxxxxx
 
>>>>> Peter Stephenson <pws@xxxxxxx> writes:
> Certainly expected by me: "close" means completely close the file
> descriptor.
Are you saying that
  exec {fd}<&-
  exec {fd}>&-
do exactly the same thing?  Then does it make sense to have both?
> I think the only alternative (that would allow you to leave
> it open for one of reading or writing after opening it for both) would
> be to close it and reopen it, which is a larger side effect than I would
> expect.  I'm happy to hear alternative interpretations, of course.
I guess socket fds could support half close with shutdown()..
greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author