Subject: bin/286: /bin/sh doesn't set $? to 0 after successful variable assignment
To: None <gnats-admin>
From: J.T. Conklin <jtc>
List: netbsd-bugs
Date: 06/11/1994 10:05:02
>Number:         286
>Category:       bin
>Synopsis:       /bin/sh doesn't set $? to 0 after successful variable assignment
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 11 10:05:01 1994
>Originator:     J.T. Conklin
>Organization:
Winning Strategies, Inc.
>Release:        NetBSD-current
>Environment:
	
System: NetBSD sun-lamp.cs.berkeley.edu 0.9B NetBSD 0.9B (SUN_LAMP) #1: Mon May 30 11:24:35 PDT 1994 mycroft@sun-lamp.cs.berkeley.edu:/usr/src/sys/arch/i386/compile/SUN_LAMP i386


>Description:
	The shell, /bin/sh, does not set the status variable $? to 0 after
	a successfull assignment.  This causes problems with some existing
	scripts.

>How-To-Repeat:
	$ false; FOO=; echo $?

>Fix:
	?
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------