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

RE: 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