From owner-freebsd-bugs Wed Oct 16 9: 0: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE79B37B401 for ; Wed, 16 Oct 2002 09:00:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A6AB43E97 for ; Wed, 16 Oct 2002 09:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GG03x3042761 for ; Wed, 16 Oct 2002 09:00:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9GG03Nk042760; Wed, 16 Oct 2002 09:00:03 -0700 (PDT) Date: Wed, 16 Oct 2002 09:00:03 -0700 (PDT) Message-Id: <200210161600.g9GG03Nk042760@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: bin/44142: /bin/sh does not support 'command1 & && command2' syntax, which is REQUIRED by POSIX Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/44142; it has been noted by GNATS. From: Garrett Wollman To: Alexandr Kovalenko Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/44142: /bin/sh does not support 'command1 & && command2' syntax, which is REQUIRED by POSIX Date: Wed, 16 Oct 2002 11:55:42 -0400 (EDT) < said: > /bin/sh does not support 'command1 & && command2' syntax, which is REQUIRED by POSIX: Your interpretation is erroneous. The grammar takes precedence over the textual description of the syntax, and the grammar is quite clear: complete_command : list separator | list ; list : list separator_op and_or | and_or ; and_or : pipeline | and_or AND_IF linebreak pipeline | and_or OR_IF linebreak pipeline ; The pseudo-syntax `command1 &' can only be resolved by the `list' production in the grammar. The `&&' and `||' operators take pipelines, and not lists, as operands. See XCU6 page 58. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message