From owner-freebsd-current Sun Nov 1 19:07:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA20822 for freebsd-current-outgoing; Sun, 1 Nov 1998 19:07:36 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA20809 for ; Sun, 1 Nov 1998 19:07:32 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id VAA21370; Sun, 1 Nov 1998 21:05:12 -0600 (CST) Date: Sun, 1 Nov 1998 21:05:12 -0600 From: Dan Nelson To: Brian Somers , "John W. DeBoskey" Cc: Brian Feldman , freebsd-current@FreeBSD.ORG Subject: Re: Changing sh for compatibility sake Message-ID: <19981101210512.A21213@emsphone.com> 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.94.3i In-Reply-To: <199811012348.XAA29687@woof.lan.awfulhak.org>; from "Brian Somers" on Sun Nov 1 23:48:28 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Nov 01), Brian Somers said: > The *only* shell I've ever seen that does this is the original ksh. > I think it's a *great* feature, but it's also non-standard. With it, > 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. ? I thought standard procedure was to execute the last command in a pipe in the parent shell. Your command runs fine on zsh and bash (not ash though). -Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message