From owner-freebsd-current Sun Nov 1 22:42:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA19490 for freebsd-current-outgoing; Sun, 1 Nov 1998 22:42:55 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from paert.tse-online.de (paert.tse-online.de [194.97.69.172]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA19386 for ; Sun, 1 Nov 1998 22:42:51 -0800 (PST) (envelope-from ab@paert.tse-online.de) Received: (qmail 7179 invoked by uid 1000); 2 Nov 1998 06:42:07 -0000 Message-ID: <19981102074207.B471@paert.tse-online.de> Date: Mon, 2 Nov 1998 07:42:07 +0100 From: Andreas Braukmann To: freebsd-current@FreeBSD.ORG Subject: Re: Changing sh for compatibility sake Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <199811011656.LAA14169@bb01f39.unx.sas.com> <199811012348.XAA29687@woof.lan.awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: <199811012348.XAA29687@woof.lan.awfulhak.org>; from Brian Somers on Sun, Nov 01, 1998 at 11:48:28PM +0000 Organization: TSE TeleService GmbH Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Sun, Nov 01, 1998 at 11:48:28PM +0000, Brian Somers wrote: > > pdksh doesn't run the tail-end of a pipe in the current shell > > environment, > you can also > echo hello there | read a b > and get $a and $b back. > Certainly, any version of sh, ash, zsh, bash and pdksh that > I've seen execute everything in the pipe in a subshell. Since I'm using constructions like this all the time (it is definitely a great feature), I just have to state: paert:[~] > echo hello there | read a b paert:[~] > echo $a $b hello there paert:[~] > I'm running zsh 3.0.5 as my interactive shell. -ab -- /// TSE TeleService GmbH | Gsf: Arne Reuter | /// Hovestrasse 14 | Andreas Braukmann | We do it with /// D-48351 Everswinkel | HRB: 1430, AG WAF | FreeBSD/SMP /// ------------------------------------------------------------------- /// PGP-Key: http://www.tse-online.de/~ab/public-key /// Key fingerprint: 12 13 EF BC 22 DD F4 B6 3C 25 C9 06 DC D3 45 9B To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message