2011/8/16 Marc Aymerich <[email protected]>: > 2011/8/15 Camaleón <[email protected]>: >> Hola, >> >> El otro día me di cuenta de que un script que tengo en bash no funcionaba >> al ejecutarlo en wheezy (en lenny corre sin problemas). >> >> hpc03@stt300:~/Escritorio$ echo $SHELL >> /bin/bash >> >> hpc03@stt300:~/Escritorio$ cat test.sh >> #!/bin/bash >> declare -a Test=("elemento 1" "elemento 2"); >> echo ${Test[@]} >> >> hpc03@stt300:~/Escritorio$ sh test.sh >> test.sh: 2: Syntax error: "(" unexpected >> >> hpc03@stt300:~/Escritorio$ declare -a Test=("elemento 1" "elemento 2"); echo >> ${Test[@]} >> elemento 1 elemento 2 >> >> ¿Qué está pasando? > > Como apunta Matías, quizas /bin/bash sea un enlace simbólico a /bin/dash .
Ups, acabo de ver que ya está solucionado. Sorry. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CA+DCN_sxUx4JKXmePBX=VAjhmW=ofhmshjyppnjfsxph3u_...@mail.gmail.com

