Date: Sun, 12 Jun 2011 10:39:43 GMT From: jilles@FreeBSD.org To: melkov@comptek.ru, jilles@FreeBSD.org, freebsd-bugs@FreeBSD.org, jilles@FreeBSD.org Subject: Re: bin/111343: sh(1) and bash(1) with -e sometimes fail to test errors in functions Message-ID: <201106121039.p5CAdhAd007280@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: sh(1) and bash(1) with -e sometimes fail to test errors in functions State-Changed-From-To: open->closed State-Changed-By: jilles State-Changed-When: Sun Jun 12 10:36:20 UTC 2011 State-Changed-Why: Fixing this would require a new '-e'-like option so as to avoid breaking existing scripts relying on '-e'. The exact behaviour of the new option is unclear and it seems an ugly solution to me. It also looks like you have not asked bash maintainers about this. Another alternative other than '|| exit' is 'terminating' commands with '&&' rather than ';'. Responsible-Changed-From-To: freebsd-bugs->jilles Responsible-Changed-By: jilles Responsible-Changed-When: Sun Jun 12 10:36:20 UTC 2011 Responsible-Changed-Why: Track. http://www.freebsd.org/cgi/query-pr.cgi?pr=111343
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106121039.p5CAdhAd007280>