Subject: bin/29861: sh eval weird behaviour
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/02/2005 06:31:00
>Number: 29861
>Category: bin
>Synopsis: sh eval weird behaviour
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 02 06:31:00 +0000 2005
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD kaeru 3.99.3 NetBSD 3.99.3 (build.kaeru.nodebug) #28: Fri Apr 1 22:14:42 JST 2005 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru.nodebug i386
Architecture: i386
Machine: i386
>Description:
for the following commands, /bin/sh shows the different results,
depending on with or without eval.
$ ((set -e; false; echo X); echo Y)
Y
$ eval '((set -e; false; echo X); echo Y)'
X
Y
>How-To-Repeat:
see the above and src/regress/bin/sh/set_e.sh.
>Fix:
>Unformatted: