Subject: bin/9194: /bin/sh -e may abort at a conditional in a loop
To: None <gnats-bugs@gnats.netbsd.org>
From: None <akr@jaist.ac.jp>
List: netbsd-bugs
Date: 01/15/2000 04:06:55
>Number:         9194
>Category:       bin
>Synopsis:       /bin/sh -e may abort at a conditional in a loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 15 04:06:01 2000
>Last-Modified:
>Originator:     Tanaka Akira
>Organization:
	
>Release:        1.4.1
>Environment:
	
System: NetBSD serein 1.4.1 NetBSD 1.4.1 (AKR) #3: Sun Sep 19 11:43:39 JST 1999 akr@localhost:/usr/src/sys/arch/i386/compile/AKR i386


>Description:
`/bin/sh -e' exits with conditional in loop.

	
>How-To-Repeat:
	

Following script
The script follows should print `succ', but it prints nothing.

#!/bin/sh -e

for i in 0; do
  false && true
done
echo succ

>Fix:
	
>Audit-Trail:
>Unformatted: