From owner-cvs-all@FreeBSD.ORG Sat Sep 10 08:25:29 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7880A16A41F; Sat, 10 Sep 2005 08:25:29 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38A2B43D48; Sat, 10 Sep 2005 08:25:29 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8A8PS0M013726; Sat, 10 Sep 2005 08:25:29 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8A8PSVi013725; Sat, 10 Sep 2005 08:25:28 GMT (envelope-from stefanf) Message-Id: <200509100825.j8A8PSVi013725@repoman.freebsd.org> From: Stefan Farfeleder Date: Sat, 10 Sep 2005 08:25:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/bin/sh eval.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 08:25:29 -0000 stefanf 2005-09-10 08:25:28 UTC FreeBSD src repository Modified files: bin/sh eval.c Log: Pass the EV_TESTED flag to evalloop() and evalfor(). This fixes unwanted termination with set -e if a command fails in a loop body inside a function with an explicitely tested exit status, eg f() { for i in 1 2 3; do false done } f || true Briefly reviewed by: cracauer Revision Changes Path 1.46 +8 -8 src/bin/sh/eval.c