Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 06:57:13 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/125855: sh allows for multiline, non-escaped control structures (and thus isn't POSIX compliant)
Message-ID:  <200807220657.m6M6vDx1043591@www.freebsd.org>
Resent-Message-ID: <200807220700.m6M70Bxf046043@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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