From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 22 15:16:17 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ADCA10656C4 for ; Tue, 22 Jul 2008 15:16:17 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id A8A388FC27 for ; Tue, 22 Jul 2008 15:16:16 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1183901fgb.35 for ; Tue, 22 Jul 2008 08:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=KHY2esSzWThqPfBLgRQWqeMo+n5DRQBehbKn1UYCPak=; b=FxHIhGyzB1kgSPUOD850vZyuxmhgka7AyK+BnY0GoxxHGNR66lEFOfNfpEIawqM9QH EmIImdGNILGb7r4kns2MZlsC2Grc+OXsMFprFs8F3lsob/NivK9GLzhwFQ+Tj2WQrwft 6TQVgroiY2vRjJu1eqcondtIh7EwYK06vtbkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=UWMzQbqATWrPH9AAVQJmVMSi3hN9Quunqg1CKEhPIV44BhSC+JHcuFAZF/ZA4YL2R9 jlvXHj8NK+JTGzTmDhh5r7XBBU6xSsQFLtYWrLGu/Fz8LiLO/pWjHNcpEX+dg+lAZxRE KFrVGFC1nvd6YQGGsGep5+4ggwn/xAqMsL/A0= Received: by 10.86.27.19 with SMTP id a19mr6368815fga.56.1216738230043; Tue, 22 Jul 2008 07:50:30 -0700 (PDT) Received: by 10.86.54.14 with HTTP; Tue, 22 Jul 2008 07:50:30 -0700 (PDT) Message-ID: <364299f40807220750lc12de99y33ff05da97fb4243@mail.gmail.com> Date: Tue, 22 Jul 2008 07:50:30 -0700 From: "Garrett Cooper" Sender: yanegomi@gmail.com To: freebsd-standards@freebsd.org, freebsd-bugs@freebsd.org, gcooper@freebsd.org In-Reply-To: <200807221303.m6MD3bas000198@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200807220836.m6M8av6k080061@freefall.freebsd.org> <200807221303.m6MD3bas000198@lurza.secnetix.de> X-Google-Sender-Auth: a59411d4a46ce22e Cc: Subject: Re: bin/125855: sh(1) allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 15:16:17 -0000 On Tue, Jul 22, 2008 at 6:03 AM, Oliver Fromme wrote: > Actually I think that both bash's and sh's behaviour is > correct. As far as I can see in the refrenced standard > sections, there is no requirement that there must be no > newline character after the reserved word "!". It seems > to be unspecified. > > FWIW, Solaris' POSIX shell (/bin/ksh and /usr/xpg4/bin/sh) > allows a newline character, so it behaves the same as our > /bin/sh. (Note that Solaris' /bin/sh is intentionally not > a POSIX shell, it doesn't know "!" at all.) > > Best regards > Oliver Oliver, Ok. That's what I thought when I was reading the OpenGroup spec again. It's a bit confusing because I think this is a gray area... I'll see what the POSIX folks say. Thanks, -Garrett