E.g.
Code: Select all
#!/bin/sh
declare -a Unix=('Debian' 'Red hat' 'Red hat' 'Suse' 'Fedora');
echo ${Unix[@]}
Code: Select all
./array.sh: 3: ./array.sh: Syntax error: "(" unexpected
Code: Select all
#!/bin/sh
declare -a Unix=('Debian' 'Red hat' 'Red hat' 'Suse' 'Fedora');
echo ${Unix[@]}
Code: Select all
./array.sh: 3: ./array.sh: Syntax error: "(" unexpected
Thanks. Is that symlink safe to change to bash? Why does it by default point to dash?eanfrid wrote:Your default shell called by the symlink /bin/sh is not bash but dash (debian shell), hence the error message
Thanks.eanfrid wrote:You can safely use any alternative you like.
So Mint throws away essential scripting functionality in the name of saving 800 kB?eanfrid wrote:Regarding dash, check wikipedia: https://en.wikipedia.org/wiki/Debian_Almquist_shell