From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24617 invoked from network); 25 Oct 2006 11:06:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Oct 2006 11:06:03 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 8432 invoked from network); 25 Oct 2006 11:05:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Oct 2006 11:05:52 -0000 Received: (qmail 10977 invoked by alias); 25 Oct 2006 11:05:43 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10902 Received: (qmail 10968 invoked from network); 25 Oct 2006 11:05:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Oct 2006 11:05:42 -0000 Received: (qmail 7220 invoked from network); 25 Oct 2006 11:05:42 -0000 Received: from david.siemens.de (192.35.17.14) by a.mx.sunsite.dk with SMTP; 25 Oct 2006 11:05:40 -0000 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.6/8.12.6) with ESMTP id k9PB5dEm013865; Wed, 25 Oct 2006 13:05:39 +0200 Received: from mchp7wta.ww002.siemens.net (mchp7wta.ww002.siemens.net [139.25.131.193]) by mail1.siemens.de (8.12.6/8.12.6) with ESMTP id k9PB5d7l011036; Wed, 25 Oct 2006 13:05:39 +0200 Received: from MCHP7R6A.ww002.siemens.net ([139.25.131.164]) by mchp7wta.ww002.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Oct 2006 13:05:38 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Why do I get a "bad filedescriptor" here? (redirection problem) Date: Wed, 25 Oct 2006 13:05:37 +0200 Message-ID: In-Reply-To: <20061025105541.GB29921@parhelion.globnix.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Why do I get a "bad filedescriptor" here? (redirection problem) thread-index: Acb4JCLWx5Mt7FT2TJG9g10OeZrBvgAAR13A From: "Com MN PG P E B Consultant 3" To: "Phil Pennock" Cc: "zsh-users Mailinglist" X-OriginalArrivalTime: 25 Oct 2006 11:05:38.0862 (UTC) FILETIME=[8103B4E0:01C6F825] > > Why do I get a "bad file descriptor" in the first two cases? >=20 > Because you've closed it, so it's not available for writing. =20 > 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 --=20 Ronald Fischer (phone +49-89-63676431) mailto:mn-pg-p-e-b-consultant-3.com@siemens.com