From nobody  Wed Apr  9 22:03:33 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id WAA15325;
          Wed, 9 Apr 1997 22:03:33 -0700 (PDT)
Message-Id: <199704100503.WAA15325@freefall.freebsd.org>
Date: Wed, 9 Apr 1997 22:03:33 -0700 (PDT)
From: filo@yahoo.com
To: freebsd-gnats-submit@freebsd.org
Subject: variable substitution "a=${a:=}" in /bin/sh causes infinite loop
X-Send-Pr-Version: www-1.0

>Number:         3245
>Category:       bin
>Synopsis:       variable substitution "a=${a:=}" in /bin/sh causes infinite loop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  9 22:10:01 PDT 1997
>Closed-Date:    Mon May 25 21:47:13 PDT 1998
>Last-Modified:  Mon May 25 21:49:21 PDT 1998
>Originator:     david filo
>Release:        2.2-stable (as of 4/9/97)
>Organization:
yahoo
>Environment:
FreeBSD 67.yahoo.com 2.2-STABLE FreeBSD 2.2-STABLE #0: Thu Apr 10 01:06:58 GMT 1997
>Description:
the following variable substitution in /bin/sh results in an
infinite loop, provided a has a null value.  by definition it should
set a to null.

a=${a:=}
>How-To-Repeat:
run the following script

#!/bin/sh
a=
a=${a:=}
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Mon May 25 21:47:13 PDT 1998 
State-Changed-Why:  
Originator confirmed this problem no longer manifests itself. 
>Unformatted:
