From owner-freebsd-bugs Mon Aug 12 11:12:51 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 771CC37B400; Mon, 12 Aug 2002 11:12:48 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 282E243E3B; Mon, 12 Aug 2002 11:12:48 -0700 (PDT) (envelope-from jon@FreeBSD.org) Received: from freefall.freebsd.org (jon@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7CICmJU078243; Mon, 12 Aug 2002 11:12:48 -0700 (PDT) (envelope-from jon@freefall.freebsd.org) Received: (from jon@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7CICkuf078234; Mon, 12 Aug 2002 11:12:46 -0700 (PDT) Date: Mon, 12 Aug 2002 11:12:46 -0700 (PDT) From: Jonathan Chen Message-Id: <200208121812.g7CICkuf078234@freefall.freebsd.org> To: jonny@jonny.eng.br, jon@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/41240: /bin/sh builtins redirection failures abort entire script 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 Synopsis: /bin/sh builtins redirection failures abort entire script State-Changed-From-To: open->closed State-Changed-By: jon State-Changed-When: Mon Aug 12 11:08:42 PDT 2002 State-Changed-Why: Contrary to popular belief, bash does not define the standard to unix shells... :) This behavior is consistant with the expected historical behavior of /bin/sh; csh and tcsh also behaves in a similar manner. If you want to ignore failures hen redirecting, you can put parenthesis around the command, like: (echo foo > /nonexistant/foo/bar) http://www.freebsd.org/cgi/query-pr.cgi?pr=41240 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message