From owner-freebsd-hackers@FreeBSD.ORG Tue May 28 12:00:57 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4C069C4B for ; Tue, 28 May 2013 12:00:57 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1B3A62B4 for ; Tue, 28 May 2013 12:00:56 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id n12so9867369oag.17 for ; Tue, 28 May 2013 05:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hG2bVdhsfuXZt9Rn4NpCSHi/IXAGtI+dIz/Qu3qrOJQ=; b=jC7WNdVKoOd+kM2zQR9sHzC1fMO/vhYFn9hTjRf6DDFFSd+GRohiWFpcQe44GAIgws x3kPNwcaE+1tbPQcAztPclnRLTbyJc7Xw5auOahcxbG6UKqfBSmO7VL9/v8sbsSY1z5q N1Xczycr0mBJNBxf6fXx9Mkw6y5oPED2lyao5tOgerE/adW4DuxmqAXIsegORPJCJqe7 WfiLEYHjo2x5ucAANK1PxwnR5RaPvAmAIyFj62dAqmIje+/FATG7y8324ExXe9zBdsTm SjRtS7Hh8PCeLJvmNm2Rbw+5m815wCHxLqUGEAalv0FjdQwOLnuaY9yiNmePbvf+ygai 2d9w== MIME-Version: 1.0 X-Received: by 10.182.97.168 with SMTP id eb8mr20544699obb.89.1369742456400; Tue, 28 May 2013 05:00:56 -0700 (PDT) Received: by 10.76.91.163 with HTTP; Tue, 28 May 2013 05:00:56 -0700 (PDT) In-Reply-To: References: <20130527.194235.693.1@DOMY-PC> Date: Tue, 28 May 2013 08:00:56 -0400 Message-ID: Subject: Re: /bin/sh => STDIN & functions, var scope messing From: Ryan Stone To: =?ISO-8859-1?Q?V=E1clav_Zeman?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: rank1seeker@gmail.com, Reid Linnemann , FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 12:00:57 -0000 On Tue, May 28, 2013 at 5:48 AM, V=E1clav Zeman 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.