>Number:         6481
>Category:       user
>Synopsis:       /bin/sh does not honor the errexit option for command lists 
>with && or ||
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Fri Oct 08 18:50:02 GMT 2010
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
        System      : OpenBSD 4.8
        Details     : OpenBSD 4.8-current (GENERIC.MP) #454: Tue Oct  5 
16:38:18 MDT 2010
                         
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP

        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        When a command list contains && or ||, a set errexit option
        does not cause the shell to exit if the last command in the
        list returns non-zero.
>How-To-Repeat:
        /bin/sh -ec 'true && false ; echo $?, still alive'
        /bin/ksh -ec 'false || false ; echo $?, still alive'
>Fix:
        <how to correct or work around the problem, if known (multiple lines)>


>Release-Note:
>Audit-Trail:
>Unformatted:
 SENDBUG: -*- sendbug -*-
 SENDBUG: Lines starting with `SENDBUG' will be removed automatically.
 SENDBUG:
 SENDBUG: Choose from the following categories:
 SENDBUG:
 SENDBUG: system user library documentation kernel alpha amd64 arm hppa i386 
m68k m88k mips64 powerpc sh sparc sparc64 vax
 SENDBUG:
 SENDBUG:

Reply via email to