Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2009 20:41:00 GMT
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/134881: sh(1) with 'set -e' exits immediately in tested eval command
Message-ID:  <200905232041.n4NKf00a060978@www.freebsd.org>
Resent-Message-ID: <200905232050.n4NKo1mp080519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905232041.n4NKf00a060978>