Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exec {_Dbg_new_fd}<>&-
- X-seq: zsh-workers 26136
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: exec {_Dbg_new_fd}<>&-
- Date: Fri, 12 Dec 2008 11:08:50 +0000
- In-reply-to: <m363lpwuq4.fsf@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <6cd6de210812111709l43863baatc4eb728035b8f1f1@xxxxxxxxxxxxxx> <200812120947.mBC9lplo015442@xxxxxxxxxxxxxx> <m363lpwuq4.fsf@xxxxxxxxxxxxxx>
Greg Klanderman wrote:
> Are you saying that
>
> exec {fd}<&-
> exec {fd}>&-
>
> do exactly the same thing?
I believe so; I can't see any obvious difference.
> Then does it make sense to have both?
If you didn't (i) people would forever be guessing which one they were
supposed to use (ii) you would have to match "exec {fd}>file" with "exec
{fd}<&-" or vice versa (iii) it would be incompatible with what we've
got anyway.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author