From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 12 10:39:44 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86854106566C; Sun, 12 Jun 2011 10:39:44 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 77FA68FC0A; Sun, 12 Jun 2011 10:39:44 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5CAdi7d007284; Sun, 12 Jun 2011 10:39:44 GMT (envelope-from jilles@freefall.freebsd.org) Received: (from jilles@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5CAdhAd007280; Sun, 12 Jun 2011 10:39:43 GMT (envelope-from jilles) Date: Sun, 12 Jun 2011 10:39:43 GMT Message-Id: <201106121039.p5CAdhAd007280@freefall.freebsd.org> To: melkov@comptek.ru, jilles@FreeBSD.org, freebsd-bugs@FreeBSD.org, jilles@FreeBSD.org From: jilles@FreeBSD.org Cc: Subject: Re: bin/111343: sh(1) and bash(1) with -e sometimes fail to test errors in functions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 10:39:44 -0000 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