You were right , sh pointed to dash, and bash works ok. I'm using Debian from potato and from i know never sh has pointed to something different from bash.
Sorry by bothering you , but i don't know if is correct that sh in a fresh installed system points to dash, and if not which package to report. The only speciality in my installation is I install the bare minimum from netinst cd , and aftewards i mount the dvd images as /dev/loop[1-9] and install rest with apt-get ( because system hasn't internet connection ) . The only packages installed are xorg-dev , fvwm , less , mc , mplayer , xpdf , ghostscript , gcc , g++ , python , emacs , joe, make , autotools. Nothing has done as root from scratch than compile ( as user ) and install ( as root ) new kernel , drm-nouveau , nouveau. José 2013/6/17 Debian Bug Tracking System <ow...@bugs.debian.org> > This is an automatic notification regarding your Bug report > which was filed against the bash package: > > #712538: Bug in bash debian 7.0 : error when using array in any shell > script > > It has been closed by Helmut Grohne <hel...@subdivi.de>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Helmut Grohne < > hel...@subdivi.de> by > replying to this email. > > > -- > 712538: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712538 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > > > ---------- Mensaje reenviado ---------- > From: Helmut Grohne <hel...@subdivi.de> > To: joseph frail <jose.fra...@gmail.com>, 712538-d...@bugs.debian.org > Cc: > Date: Mon, 17 Jun 2013 10:02:03 +0200 > Subject: Re: Bug#712538: Bug in bash debian 7.0 : error when using array > in any shell script > 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 > > ---------- Mensaje reenviado ---------- > From: joseph frail <jose.fra...@gmail.com> > To: sub...@bugs.debian.org > Cc: > Date: Mon, 17 Jun 2013 00:50:03 +0200 > Subject: Bug in bash debian 7.0 : error when using array in any shell > script > 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 > > > > >