NetBSD Problem Report #39792
From cheusov@tut.by Thu Oct 23 20:15:29 2008
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id B9F2063B966
for <gnats-bugs@gnats.netbsd.org>; Thu, 23 Oct 2008 20:15:29 +0000 (UTC)
Message-Id: <s93prlr9igi.fsf@chen.chizhovka.net>
Date: Thu, 23 Oct 2008 23:15:09 +0300
From: cheusov@tut.by
Reply-To:
To: gnats-bugs@gnats.NetBSD.org
Subject: /bin/ksh bug: if, eval and 'set -e'
X-Send-Pr-Version: 3.95
>Number: 39792
>Category: bin
>Synopsis: /bin/ksh bug: 'eval', 'if' and 'set -e'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 23 20:20:00 +0000 2008
>Originator: cheusov@tut.by
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3: Sun Oct 19 20:54:51 EEST 2008 cheusov@chen.chizhovka.net:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
I think ksh is wrong here.
0 ~>cat /home/cheusov/tmp/1.sh
#!/bin/sh
set -e
if eval false; then
echo 'Really?'
fi
echo "Ok"
0 ~>/bin/sh /home/cheusov/tmp/1.sh
Ok
0 ~>/bin/ksh /home/cheusov/tmp/1.sh
1 ~>
>Fix:
Unknown
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.