From owner-freebsd-questions Wed Feb 7 14:22:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 8753537B491 for ; Wed, 7 Feb 2001 14:22:19 -0800 (PST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.1/8.11.1) id f17MM8j14755; Wed, 7 Feb 2001 23:22:08 +0100 (CET) (envelope-from stijn) Date: Wed, 7 Feb 2001 23:22:08 +0100 From: Stijn Hoop To: Ariff Abdullah Cc: freebsd-questions@freebsd.org Subject: Re: read in /bin/sh & pipes [was Re: sed & awk help...?!] Message-ID: <20010207232208.C12534@pcwin002.win.tue.nl> References: <054F7DAA9E54D311AD090008C74CE9BD01F1E94E@exchange.panasonicfa.com> <01020804390900.25931@FreeBSD.mine.nu> <20010207225303.B12534@pcwin002.win.tue.nl> <01020806275703.25931@FreeBSD.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01020806275703.25931@FreeBSD.mine.nu>; from skywizard@time.net.my on Thu, Feb 08, 2001 at 06:20:50AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 08, 2001 at 06:20:50AM +0800, Ariff Abdullah wrote: [big snip] > You're using /bin/sh isn't it? Yes. > I don't know whether this is a bug or what, > simmilar with pdksh proble "echo bla | read ..." > But , if you do with zsh , you can get what you expect , as zsh treat > the pipe in a same proccess , not spawning another subshell. > Bash , sh , ksh have this sort of "bug" (correct me if i'm mistaken) Ah, so pipes in /bin/sh invoke subshells? A friend also pointed me at the pdksh faq (http://www.cs.mun.ca/~michael/pdksh/), where it's the #1 most reported bug apparently. I still think it's strange behaviour though. --Stijn -- The right half of the brain controls the left half of the body. This means that only left handed people are in their right mind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message