Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 23:22:08 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Ariff Abdullah <skywizard@time.net.my>
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>
In-Reply-To: <01020806275703.25931@FreeBSD.mine.nu>; from skywizard@time.net.my on Thu, Feb 08, 2001 at 06:20:50AM %2B0800
References:  <054F7DAA9E54D311AD090008C74CE9BD01F1E94E@exchange.panasonicfa.com> <01020804390900.25931@FreeBSD.mine.nu> <20010207225303.B12534@pcwin002.win.tue.nl> <01020806275703.25931@FreeBSD.mine.nu>

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




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