Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Why do I get a "bad filedescriptor" here? (redirection problem)
- X-seq: zsh-users 10902
- From: "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@xxxxxxxxxxx>
- To: "Phil Pennock" <phil.pennock@xxxxxxxxxxx>
- Subject: RE: Why do I get a "bad filedescriptor" here? (redirection problem)
- Date: Wed, 25 Oct 2006 13:05:37 +0200
- Cc: "zsh-users Mailinglist" <zsh-users@xxxxxxxxxx>
- In-reply-to: <20061025105541.GB29921@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Thread-index: Acb4JCLWx5Mt7FT2TJG9g10OeZrBvgAAR13A
- Thread-topic: Why do I get a "bad filedescriptor" here? (redirection problem)
> > Why do I get a "bad file descriptor" in the first two cases?
>
> Because you've closed it, so it's not available for writing.
> Most tools
> just assume that file descriptors 0, 1 and 2 are available for use and
> will just write to stdout without checking, so they'll get errors and
> complain like that when it's closed.
I see! And I thought that >&- is just a short cut for >/dev/null !!!
Thank you for explaining this.
Ronald
--
Ronald Fischer (phone +49-89-63676431)
mailto:mn-pg-p-e-b-consultant-3.com@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author