From owner-freebsd-standards@FreeBSD.ORG Mon Aug 12 11:06:53 2013 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B162FB00 for ; Mon, 12 Aug 2013 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9E0032150 for ; Mon, 12 Aug 2013 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7CB6rCk085186 for ; Mon, 12 Aug 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7CB6rcr085184 for freebsd-standards@FreeBSD.org; Mon, 12 Aug 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Aug 2013 11:06:53 GMT Message-Id: <201308121106.r7CB6rcr085184@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 Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/179248 standards A return value of telldir(3) only seekable for once o stand/177742 standards conflict of dd's bs= option with use of conv=sparse o stand/176683 standards catman pages shall be stored in /var (/usr/local/var,/ o stand/176412 standards newfs writes by default, compare to bsdlabel/disklabel o stand/175711 standards When the server has more than 3 days, rising interrupt p stand/175453 standards Catching C++ std::bad_cast doesn't work in FreeBSD 9.1 o stand/174938 standards Problem statement: iSCSI target failure o stand/173421 standards [libc] [patch] strptime() accepts formats that should o stand/173087 standards pax(1) does not support the pax interchange format o stand/172805 standards Fix catopen(3)'s EINVAL usage and document EFTYPE o stand/172276 standards POSIX: {get,set}groups gidsetsize is u_int not int o stand/172215 standards localeconv() grouping appears not to match POSIX o stand/170403 standards wrong ntohs expression type tickling clang o stand/169697 standards syslogd(8) is not BOM aware o stand/166349 standards Support the assignment-allocation character for fscanf p stand/164787 standards dirfd() function not available when _POSIX_C_SOURCE is o kern/164674 standards [patch] [libc] vfprintf/vfwprintf return error (EOF) o o stand/162434 standards getaddrinfo: addrinfo.ai_family is an address family, o stand/150093 standards C++ std::locale support is broken o stand/130067 standards Wrong numeric limits in system headers? o stand/125751 standards man 3 pthread_getschedparam section ERRORS incomplete o stand/124860 standards flockfile(3) doesn't work when the memory has been exh o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116081 standards make does not work with the directive sinclude a stand/86484 standards [patch] mkfifo(1) uses wrong permissions o stand/81287 standards [patch] fingerd(8) might send a line not ending in CRL a stand/80293 standards sysconf() does not support well-defined unistd values o stand/79056 standards [feature request] [atch] regex(3) regression tests o stand/70813 standards [patch] ls(1) not Posix compliant o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( o stand/56476 standards [patch] cd9660 unicode support simple hack o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/44365 standards [headers] [patch] [request] introduce ulong and unchar a stand/41576 standards ln(1): replacing old dir-symlinks a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h s stand/24590 standards timezone function not compatible witn Single Unix Spec o stand/21519 standards sys/dir.h should be deprecated some more s bin/14925 standards getsubopt isn't poisonous enough 42 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Aug 12 14:00:01 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0C319F3A for ; Mon, 12 Aug 2013 14:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C61EB2041 for ; Mon, 12 Aug 2013 14:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7CE00Md020829 for ; Mon, 12 Aug 2013 14:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7CE00no020818; Mon, 12 Aug 2013 14:00:00 GMT (envelope-from gnats) Resent-Date: Mon, 12 Aug 2013 14:00:00 GMT Resent-Message-Id: <201308121400.r7CE00no020818@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tamas TEVESZ Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 09EFAE2D for ; Mon, 12 Aug 2013 13:54:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB8A62FB3 for ; Mon, 12 Aug 2013 13:54:02 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7CDs26Q005130 for ; Mon, 12 Aug 2013 13:54:02 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7CDs2Iu005077; Mon, 12 Aug 2013 13:54:02 GMT (envelope-from nobody) Message-Id: <201308121354.r7CDs2Iu005077@oldred.freebsd.org> Date: Mon, 12 Aug 2013 13:54:02 GMT From: Tamas TEVESZ To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: standards/181240: /bin/sh choking on a certain construct X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 14:00:01 -0000 >Number: 181240 >Category: standards >Synopsis: /bin/sh choking on a certain construct >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 12 14:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tamas TEVESZ >Release: 9.1 >Organization: >Environment: FreeBSD localhost.localdomain 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #13 r253984: Wed Aug 7 03:49:56 CEST 2013 root@localhost.localdomain:/usr/obj/usr/src/sys/DTRACE amd64 >Description: $ /bin/sh -c 'echo foo || >&2 | cat' Syntax error: "|" unexpected This snippet is run finely by every Bourne-ish shell I could manage to check (pdksh, busybox ash, dash, Solaris' /usr/xpg4/bin/sh, HPUX's sh, even ports/v7sh). Because of this, I'm categorizing this as a standards bug (even though I haven't checked POSIX or SuS), feel free to re-categorize. >How-To-Repeat: /bin/sh -c 'echo foo || >&2 | cat' (Or, if you have misc/mc installed, hit ^[3 on a .diff/.patch/.so etc. file for which mc calls /usr/local/libexec/mc/ext.d/misc.sh) >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Mon Aug 12 21:10:03 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 02CF4F9D for ; Mon, 12 Aug 2013 21:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E1DE32BD6 for ; Mon, 12 Aug 2013 21:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7CLA1LV005925 for ; Mon, 12 Aug 2013 21:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7CLA1lH005924; Mon, 12 Aug 2013 21:10:01 GMT (envelope-from gnats) Date: Mon, 12 Aug 2013 21:10:01 GMT Message-Id: <201308122110.r7CLA1lH005924@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Jens Schweikhardt Subject: Re: standards/181240: /bin/sh choking on a certain construct X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jens Schweikhardt List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 21:10:03 -0000 The following reply was made to PR standards/181240; it has been noted by GNATS. From: Jens Schweikhardt To: Tamas TEVESZ Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: standards/181240: /bin/sh choking on a certain construct Date: Mon, 12 Aug 2013 23:06:43 +0200 On Mon, Aug 12, 2013 at 01:54:02PM +0000, Tamas TEVESZ wrote: # >How-To-Repeat: # /bin/sh -c 'echo foo || >&2 | cat' # # (Or, if you have misc/mc installed, hit ^[3 on a .diff/.patch/.so etc. file for which mc calls /usr/local/libexec/mc/ext.d/misc.sh) A simpler invocation is $ >x | cat Syntax error: "|" unexpected If I read the SUS shell grammar correctly, a lone redirection cannot be a simple command in a pipe, so this is an extension that the other shells accept. I'm not sure if this is a particular useful extension. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) From owner-freebsd-standards@FreeBSD.ORG Mon Aug 12 21:55:06 2013 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 69564963 for ; Mon, 12 Aug 2013 21:55:06 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E9C442E5A for ; Mon, 12 Aug 2013 21:55:05 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id BADEE3592F8; Mon, 12 Aug 2013 23:55:02 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 910F728494; Mon, 12 Aug 2013 23:55:02 +0200 (CEST) Date: Mon, 12 Aug 2013 23:55:02 +0200 From: Jilles Tjoelker To: Jens Schweikhardt Subject: Re: standards/181240: /bin/sh choking on a certain construct Message-ID: <20130812215502.GA53860@stack.nl> References: <201308122110.r7CLA1lH005924@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201308122110.r7CLA1lH005924@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 21:55:06 -0000 On Mon, Aug 12, 2013 at 09:10:01PM +0000, Jens Schweikhardt wrote: > The following reply was made to PR standards/181240; it has been noted > by GNATS. > From: Jens Schweikhardt > To: Tamas TEVESZ > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: standards/181240: /bin/sh choking on a certain construct > Date: Mon, 12 Aug 2013 23:06:43 +0200 > On Mon, Aug 12, 2013 at 01:54:02PM +0000, Tamas TEVESZ wrote: > # >How-To-Repeat: > # /bin/sh -c 'echo foo || >&2 | cat' > # > # (Or, if you have misc/mc installed, hit ^[3 on a .diff/.patch/.so etc. file for which mc calls /usr/local/libexec/mc/ext.d/misc.sh) > A simpler invocation is > $ >x | cat > Syntax error: "|" unexpected > If I read the SUS shell grammar correctly, a lone redirection cannot be > a simple command in a pipe, so this is an extension that the other > shells accept. I'm not sure if this is a particular useful extension. I think the PR is valid. A lone redirection is a valid simple command, everywhere a simple command may occur. In the grammar, the simple_command consists of a single cmd_prefix which consists of a single io_redirect. I fixed this for & in 2010 and fixing it for | as well is not hard. The same problem exists for ;; and ;&. See the below patch. I plan to commit it soon. Index: bin/sh/parser.c =================================================================== --- bin/sh/parser.c (revision 253911) +++ bin/sh/parser.c (working copy) @@ -577,6 +577,9 @@ TRACE(("expecting DO got %s %s\n", tokname[got], g case TSEMI: case TAND: case TOR: + case TPIPE: + case TENDCASE: + case TFALLTHRU: /* * An empty command before a ; doesn't make much sense, and * should certainly be disallowed in the case of `if ;'. Index: tools/regression/bin/sh/parser/only-redir2.0 =================================================================== --- tools/regression/bin/sh/parser/only-redir2.0 (revision 0) +++ tools/regression/bin/sh/parser/only-redir2.0 (working copy) @@ -0,0 +1,2 @@ +# $FreeBSD$ + Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C83C1862; Wed, 14 Aug 2013 20:24:38 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9EE3E2463; Wed, 14 Aug 2013 20:24:38 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7EKOcYV090235; Wed, 14 Aug 2013 20:24:38 GMT (envelope-from jilles@freefall.freebsd.org) Received: (from jilles@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7EKOb7V090234; Wed, 14 Aug 2013 20:24:37 GMT (envelope-from jilles) Date: Wed, 14 Aug 2013 20:24:37 GMT Message-Id: <201308142024.r7EKOb7V090234@freefall.freebsd.org> To: ice@extreme.hu, jilles@FreeBSD.org, freebsd-standards@FreeBSD.org, jilles@FreeBSD.org From: jilles@FreeBSD.org Subject: Re: standards/181240: /bin/sh choking on a certain construct X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2013 20:24:38 -0000 Synopsis: /bin/sh choking on a certain construct State-Changed-From-To: open->patched State-Changed-By: jilles State-Changed-When: Wed Aug 14 20:24:04 UTC 2013 State-Changed-Why: Fixed in 10-current. Responsible-Changed-From-To: freebsd-standards->jilles Responsible-Changed-By: jilles Responsible-Changed-When: Wed Aug 14 20:24:04 UTC 2013 Responsible-Changed-Why: sh(1) is my area. http://www.freebsd.org/cgi/query-pr.cgi?pr=181240 From owner-freebsd-standards@FreeBSD.ORG Thu Aug 15 02:00:32 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 74CDB351; Thu, 15 Aug 2013 02:00:32 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4A4882A4C; Thu, 15 Aug 2013 02:00:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7F20WDv066543; Thu, 15 Aug 2013 02:00:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7F20Wa9066542; Thu, 15 Aug 2013 02:00:32 GMT (envelope-from linimon) Date: Thu, 15 Aug 2013 02:00:32 GMT Message-Id: <201308150200.r7F20Wa9066542@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: standards/181306: Re: standards/181240: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Aug 2013 02:00:32 -0000 Old Synopsis: Re: standard/181240: commit references a PR New Synopsis: Re: standards/181240: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Thu Aug 15 01:58:30 UTC 2013 State-Changed-Why: Misfiled followup to standards/181240:; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 15 01:58:30 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=181306