[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [3.0.13] declare -a a=('$0') + bug with exported array
From: |
Chet Ramey |
Subject: |
Re: [3.0.13] declare -a a=('$0') + bug with exported array |
Date: |
Thu, 16 Sep 2004 11:01:14 -0400 |
> That sounds quite normal to me, given what arrays are in ksh.
Sure, once you understand how ksh implements variables. It's not as easy
to explain as it could be, though.
> I thought bash behaved the same way as ksh, it doesn't seem to
> be the case.
>
> There actually seems to be a bug in bash:
Yes, you found one. The conversion of a scalar to an array doesn't cause
the environment to me marked as needing recreation. Simple bug, easy fix.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/