NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39792: /bin/ksh bug: if, eval and 'set -e'

>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
>Release:        NetBSD 4.0_STABLE
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3: 
Sun Oct 19 20:54:51 EEST 2008 i386
Architecture: i386
Machine: i386

I think ksh is wrong here.

   0 ~>cat /home/cheusov/tmp/

   set -e

   if eval false; then
       echo 'Really?'

   echo "Ok"
   0 ~>/bin/sh /home/cheusov/tmp/
   0 ~>/bin/ksh /home/cheusov/tmp/
   1 ~>



Home | Main Index | Thread Index | Old Index