Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 15:03:37 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-standards@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, gcooper@FreeBSD.ORG
Subject:   Re: bin/125855: sh(1) allows for multiline, non-escaped control structures (and thus isn't POSIX compliant)
Message-ID:  <200807221303.m6MD3bas000198@lurza.secnetix.de>
In-Reply-To: <200807220836.m6M8av6k080061@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"When your hammer is C++, everything begins to look like a thumb."
        -- Steve Haflich, in comp.lang.c++



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