Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 1998 07:42:07 +0100
From:      Andreas Braukmann <braukmann@tse-online.de>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: Changing sh for compatibility sake
Message-ID:  <19981102074207.B471@paert.tse-online.de>
In-Reply-To: <199811012348.XAA29687@woof.lan.awfulhak.org>; from Brian Somers on Sun, Nov 01, 1998 at 11:48:28PM %2B0000
References:  <199811011656.LAA14169@bb01f39.unx.sas.com> <199811012348.XAA29687@woof.lan.awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981102074207.B471>