bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault when declaring shell variables as array


From: Chet Ramey
Subject: Re: segfault when declaring shell variables as array
Date: Thu, 27 Dec 2001 12:06:50 -0500

> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
> 
> Description:
>       Bash causes a segmentation fault when some special shell variables
>       are declared as array
> 
> Repeat-By:
>       in bash, declare one of the shell variables RANDOM,SECONDS,HISTCMD or
>       LINENO as an array by executing eg. 'declare -a RANDOM', and then try
>       to read its contents by executing eg. 'echo $RANDOM'.
>       The shell will immediately quit because of a segfault

Thanks, fixed.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]