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: