[gnu.bash.bug] ${parameter-word} substitution bug in 1.04

ra@is.uu.no (Robert Andersson) (12/29/89)

This is on an NCR Tower 32/400 running SYSVr2. 
Bash does not seem to handle ${parameter-word} substitution correctly
when parameter is one of the $1 to $9 positional parameters.
The following typescript describes the problem in detail:

Script started [typescript] at Thu Dec 28 18:16:34 1989
ra ~ $ cat bashbug
a=${1-default}
echo $a
ra ~ $ bash bashbug xxx
default
ra ~ $ sh bashbug xxx
xxx
ra ~ $ Script ended [typescript] at Thu Dec 28 18:17:06 1989
-- 
Robert Andersson, International Systems A/S, Oslo, Norway.
Internet:         ra@is.uu.no
UUCP:             ...!{uunet,mcvax,ifi}!is.uu.no!ra

chet@cwns1.CWRU.EDU (Chet Ramey) (12/29/89)

In article <1989Dec28.182834.7529@is.uu.no> ra@is.uu.no (Robert Andersson) writes:

>Bash does not seem to handle ${parameter-word} substitution correctly
>when parameter is one of the $1 to $9 positional parameters.

Already fixed, and the fix will be in version 1.05 (whenever it comes out).

Chet Ramey
-- 
Chet Ramey
Network Services Group				"Where's my froggie?"
Case Western Reserve University
chet@ins.CWRU.Edu