Your message dated Mon, 17 Jun 2013 10:02:03 +0200
with message-id <[email protected]>
and subject line Re: Bug#712538: Bug in bash debian 7.0 : error when using
array in any shell script
has caused the Debian Bug report #712538,
regarding Bug in bash debian 7.0 : error when using array in any shell script
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
712538: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712538
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 4.2+dfsg-0.1
In a shell script when there is any array bash report an error on the
variable. For instance in file.sh :
a[0]=1
echo ${a[0]}
when executed bash would report an error on 2nd line
I'm using debian 7.0 from version in dvd. It happened already when it was
testing.
The particularities of my system are:
- nouveau ( riva TNT2 ) that makes graphics unusable because x crashes just
in seconds always from second time you reboot, not first one, with the x
just fresh installed.
- the system has no internet.
- just installed the minimum , and packages added aftewards with apt-get
--- End Message ---
--- Begin Message ---
On Mon, Jun 17, 2013 at 02:15:56AM +0200, joseph frail wrote:
> $cat pru
> a[0]=1
> echo ${a[0]}
>
> $sh pru
> pru: 1: pru: a[0]=1: not found
> pru: 2: pru: Bad substitution
Most likely you are invoking dash here. That's not bash. Then again
arrays are not required by POSIX, so dash isn't wrong here either.
Assuming this to be correct, there is no bug, so I am closing it. In
case my guess about /bin/sh pointing to dash is wrong, please reopen.
Helmut
--- End Message ---