Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: exec {_Dbg_new_fd}<>&-



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