From owner-freebsd-bugs@FreeBSD.ORG Sat May 23 20:50:01 2009 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 EE16A106566C for ; Sat, 23 May 2009 20:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AF7078FC17 for ; Sat, 23 May 2009 20:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4NKo1rP080520 for ; Sat, 23 May 2009 20:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4NKo1mp080519; Sat, 23 May 2009 20:50:01 GMT (envelope-from gnats) Resent-Date: Sat, 23 May 2009 20:50:01 GMT Resent-Message-Id: <200905232050.n4NKo1mp080519@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikolaj Golub Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C946A1065674 for ; Sat, 23 May 2009 20:41:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B7BEC8FC1E for ; Sat, 23 May 2009 20:41:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4NKf0DD060979 for ; Sat, 23 May 2009 20:41:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4NKf00a060978; Sat, 23 May 2009 20:41:00 GMT (envelope-from nobody) Message-Id: <200905232041.n4NKf00a060978@www.freebsd.org> Date: Sat, 23 May 2009 20:41:00 GMT From: Mikolaj Golub To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/134881: sh(1) with 'set -e' exits immediately in tested eval command 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: Sat, 23 May 2009 20:50:02 -0000 >Number: 134881 >Category: bin >Synopsis: sh(1) with 'set -e' exits immediately in tested eval command >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 23 20:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mikolaj Golub >Release: current >Organization: >Environment: FreeBSD fbsd.zhuzha.ua1 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r191131M: Sat May 9 10:48:19 EEST 2009 root@zhuzha.ua1:/home/golub/freebsd/build/obj/home/golub/freebsd/src/sys/NOSWAPPING i386 FreeBSD zhuzha.ua1 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #8: Sun Apr 26 12:08:58 EEST 2009 root@zhuzha.ua1:/usr/obj/usr/src/sys/DEBUG i386 FreeBSD kopusha.onet 6.4-STABLE FreeBSD 6.4-STABLE #0: Tue May 5 03:04:10 EEST 2009 root@kopusha.onet:/usr/obj/usr/src/sys/GENERIC i386 >Description: Aleksey Cheusov posted the following sctipt to fido7.ru.unix.bsd, which shows bug in sh(1): #!/bin/sh set -e if eval false; then echo 'Really?' fi echo "Your shell is good" >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: