Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 08:00:56 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        =?ISO-8859-1?Q?V=E1clav_Zeman?= <vhaisman@gmail.com>
Cc:        rank1seeker@gmail.com, Reid Linnemann <linnemannr@gmail.com>, FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: /bin/sh => STDIN & functions, var scope messing
Message-ID:  <CAFMmRNz8p4t=PEstsy5itKYPUiJzo5_48L9sJWQxWjWrXcpDmg@mail.gmail.com>
In-Reply-To: <CAKw7uVjty2cJXT_QmexxKdRQyiKoHYMK1E-TjSHa5TCX1S8Bbg@mail.gmail.com>
References:  <20130527.194235.693.1@DOMY-PC> <CA%2B0MdpOcz7aw03HCrbxZVt1cnWdR4shqWaEfBrQkCpPnbgXLPQ@mail.gmail.com> <CAKw7uVjty2cJXT_QmexxKdRQyiKoHYMK1E-TjSHa5TCX1S8Bbg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 28, 2013 at 5:48 AM, V=E1clav Zeman <vhaisman@gmail.com> wrote:

> Curious. Which of the two behaviours is POSIXly correct?
>

I believe that /bin/sh's behaviour is correct.  I don't know what shell the
manpage is referring to, but it's not bash (bash does the same thing in a
pipeline).  Perhaps it's referring to csh?  If that is the case that line
is probably causing more confusion rather than alleviating it.



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