bin/111343: sh(1) and bash(1) with -e sometimes fail to test errors in functions

jilles at FreeBSD.org jilles at FreeBSD.org
Sun Jun 12 10:39:44 UTC 2011


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


More information about the freebsd-bugs mailing list