Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 1998 21:05:12 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Brian Somers <brian@Awfulhak.org>, "John W. DeBoskey" <jwd@unx.sas.com>
Cc:        Brian Feldman <green@zone.syracuse.net>, freebsd-current@FreeBSD.ORG
Subject:   Re: Changing sh for compatibility sake
Message-ID:  <19981101210512.A21213@emsphone.com>
In-Reply-To: <199811012348.XAA29687@woof.lan.awfulhak.org>; from "Brian Somers" on Sun Nov  1 23:48:28 GMT 1998
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
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



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