Date: Mon, 12 Aug 2002 11:12:46 -0700 (PDT) From: Jonathan Chen <jon@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 Message-ID: <200208121812.g7CICkuf078234@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208121812.g7CICkuf078234>