From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 22 07:00:11 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 489D7106567F for ; Tue, 22 Jul 2008 07:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 363688FC32 for ; Tue, 22 Jul 2008 07:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6M70BEX046044 for ; Tue, 22 Jul 2008 07:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6M70Bxf046043; Tue, 22 Jul 2008 07:00:11 GMT (envelope-from gnats) Resent-Date: Tue, 22 Jul 2008 07:00:11 GMT Resent-Message-Id: <200807220700.m6M70Bxf046043@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 858A7106566B for ; Tue, 22 Jul 2008 06:57:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 84FD48FC1D for ; Tue, 22 Jul 2008 06:57:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6M6vDmH043592 for ; Tue, 22 Jul 2008 06:57:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m6M6vDx1043591; Tue, 22 Jul 2008 06:57:13 GMT (envelope-from nobody) Message-Id: <200807220657.m6M6vDx1043591@www.freebsd.org> Date: Tue, 22 Jul 2008 06:57:13 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/125855: sh 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 07:00:11 -0000 >Number: 125855 >Category: misc >Synopsis: sh allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 22 07:00:10 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 8-CURRENT >Organization: n/a >Environment: >Description: A while back I asked the bash guys whether or not their shell was non-POSIX compliant or FreeBSD's sh was non-POSIX compliant, due to some issues executing portsnap on OSX (it fails because of newlines in 2 sections of the file added for readability sake). They came up with some documentation from the OpenGroup, which proves that their shell is POSIX compliant while sh isn't. The thread originally sent to bash-bugs@gnu.org is available here: http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/c309c6a68dea8a11 and the POSIX set criterion for parsing control structures like IF is available here: http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_03, in particular the clauses 7. and 11. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: