From owner-freebsd-current@FreeBSD.ORG Tue Jun 24 16:54:11 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 4C67A37B401; Tue, 24 Jun 2003 16:54:11 -0700 (PDT) Date: Tue, 24 Jun 2003 18:54:11 -0500 From: Juli Mallett To: Andrey Chernov Message-ID: <20030624185411.A43877@FreeBSD.org> References: <20030624183515.A42570@FreeBSD.org> <20030624234501.GA51779@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030624234501.GA51779@nagual.pp.ru>; from ache@nagual.pp.ru on Wed, Jun 25, 2003 at 03:45:02AM +0400 X-Title: Code Maven X-Towel: Yes X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb cc: current@freebsd.org Subject: Re: tcsh being dodgy, or pipe code ishoos? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2003 23:54:11 -0000 * Andrey Chernov [ Date: 2003-06-24 ] [ w.r.t. Re: tcsh being dodgy, or pipe code ishoos? ] > On Tue, Jun 24, 2003 at 18:35:15 -0500, Juli Mallett wrote: > > Anyone with insight into this? > > > > (jmallett@big-lizard:~)39% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) > > 1 > > + 2 > > + 3 > > Loks like stdout/stderr mix, but I not check the code, so just raw guess. Really? What makes you say that? All of these utilities deal with stdout. Where does stderr come into it? Yes I know about TTY races outputting to stdout and stderr from different processes, especially how confusing it is to have say foo | bar | baz and bar puts something on stderr, and baz buffers for a second. But I don't see how, practically, this comes into play? The first is clearly correct, but throwing a pipe of alll the combined stuff in seems to complicate matters, so I suspect either buggy pipe code (not unheard of) or buggy tcsh handling of pipes (possible). Thanx, juli. -- juli mallett. email: jmallett@freebsd.org; efnet: juli;