From owner-freebsd-standards@FreeBSD.ORG Mon Jul 21 11:07:03 2008 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2765106564A for ; Mon, 21 Jul 2008 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A03CC8FC21 for ; Mon, 21 Jul 2008 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6LB73AX032026 for ; Mon, 21 Jul 2008 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6LB73nD032022 for freebsd-standards@FreeBSD.org; Mon, 21 Jul 2008 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jul 2008 11:07:03 GMT Message-Id: <200807211107.m6LB73nD032022@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 11:07:03 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards sh(1) null char in quoted string o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s bin/14925 standards getsubopt isn't poisonous enough o stand/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards ln(1) Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec o stand/25777 standards [kernel] [patch] atime not updated on exec a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h o kern/27835 standards [libc] execve() doesn't conform to execve(2) spec in s s stand/36076 standards Implementation of POSIX fuser command o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards [patch] grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards [libc] [patch] _gettemp uses a far smaller set of file o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards [feature request] [atch] regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm a stand/86484 standards [PATCH] mkfifo(1) uses wrong permissions o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards [headers] clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] make(1): Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim p stand/107561 standards [libc] [patch] [request] Missing SUS function tcgetsid o kern/114578 standards [libc] wide character printing using swprintf(dst, n, o stand/116081 standards make does not work with the directive sinclude o stand/116221 standards [kernel] [patch] [request] SUS issue -- FreeBSD has no o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116826 standards [PATCH] sh support for POSIX character classes o stand/118047 standards SUGGESTION: /etc/printcap vs mergemaster o stand/119804 standards [timedef] [patch] Invalid (long)date format in pl_PL.I o stand/120947 standards xsm ignores system.xsm and .xsmstartup o stand/121568 standards [patch] ln(1): wrong "ln -s" behaviour o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/122051 standards Add posix_spawn(3) o stand/123688 standards POSIX standard changes in unistd.h and grp.h o stand/124860 standards flockfile(3) doesn't work when the memory has been exh 51 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Jul 22 08:36:58 2008 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 256481065673; Tue, 22 Jul 2008 08:36:58 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1000D8FC16; Tue, 22 Jul 2008 08:36:58 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6M8avR0080065; Tue, 22 Jul 2008 08:36:57 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6M8av6k080061; Tue, 22 Jul 2008 08:36:57 GMT (envelope-from linimon) Date: Tue, 22 Jul 2008 08:36:57 GMT Message-Id: <200807220836.m6M8av6k080061@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: bin/125855: sh(1) allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 08:36:58 -0000 Old Synopsis: sh allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) New Synopsis: sh(1) allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) Responsible-Changed-From-To: freebsd-bugs->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Tue Jul 22 08:36:35 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=125855 From owner-freebsd-standards@FreeBSD.ORG Tue Jul 22 13:03:40 2008 Return-Path: Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30994106564A; Tue, 22 Jul 2008 13:03:40 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9717E8FC12; Tue, 22 Jul 2008 13:03:39 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m6MD3bk4000199; Tue, 22 Jul 2008 15:03:37 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m6MD3bas000198; Tue, 22 Jul 2008 15:03:37 +0200 (CEST) (envelope-from olli) Date: Tue, 22 Jul 2008 15:03:37 +0200 (CEST) Message-Id: <200807221303.m6MD3bas000198@lurza.secnetix.de> From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, gcooper@FreeBSD.ORG In-Reply-To: <200807220836.m6M8av6k080061@freefall.freebsd.org> X-Newsgroups: list.freebsd-standards User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 22 Jul 2008 15:03:38 +0200 (CEST) Cc: Subject: Re: bin/125855: sh(1) allows for multiline, non-escaped control structures (and thus isn't POSIX compliant) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-standards@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, gcooper@FreeBSD.ORG List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 13:03:40 -0000 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++ From owner-freebsd-standards@FreeBSD.ORG Tue Jul 22 15:15:15 2008 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B57106586C for ; Tue, 22 Jul 2008 15:15:14 +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 7B04C8FC27 for ; Tue, 22 Jul 2008 15:15:14 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1183594fgb.35 for ; Tue, 22 Jul 2008 08:15:13 -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-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 15:15:15 -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