From owner-freebsd-bugs Wed Apr 9 22:10:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA15697 for bugs-outgoing; Wed, 9 Apr 1997 22:10:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA15679; Wed, 9 Apr 1997 22:10:02 -0700 (PDT) Resent-Date: Wed, 9 Apr 1997 22:10:02 -0700 (PDT) Resent-Message-Id: <199704100510.WAA15679@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.WAA15325;Wed; (8.8.5/8.8.5);, 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 X-Send-Pr-Version: www-1.0 Subject: bin/3245: variable substitution "a=${a:=}" in /bin/sh causes infinite loop Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 9 22:10:01 PDT 1997 >Last-Modified: >Originator: david filo >Organization: yahoo >Release: 2.2-stable (as of 4/9/97) >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: >Audit-Trail: >Unformatted: