$cat pru a[0]=1 echo ${a[0]} $sh pru pru: 1: pru: a[0]=1: not found pru: 2: pru: Bad substitution
$bash --version GNU bash, versión 4.2.37(1)-release (i486-pc-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc. Licencia GPLv3+: GPL de GNU versión 3 o posterior < http://gnu.org/licenses/gpl.html> Esto es software libre; usted es libre de cambiarlo y redistribuirlo. NO hay GARANTÍA, a la extensón permitida por la ley. $dpkg -l | grep bash ii bash 4.2+dfsg-0.1 i386 GNU Bourne Again SHell 2013/6/17 Helmut Grohne <hel...@subdivi.de> > Control: tags -1 + unreproducible moreinfo > > On Mon, Jun 17, 2013 at 12:50:03AM +0200, joseph frail wrote: > > a[0]=1 > > echo ${a[0]} > > > > when executed bash would report an error on 2nd line > > Could you care to include the particular error message? > > I tried this with bash version 4.2+dfsg-1 and the second line prints 1 > just fine. > > Helmut >