My same BASH script is working in Fedora/CentOS.
But I am testing one Android eee pad transformer.
Android eee pad transformer
May be it will work when calling interpreter with a script?
$ bash ./test.sh
I saw, that although it is specified #!/bin/bash error was posted by sh - may be it do wrong.
#!/bin/bash
sh
UPD
$ sh ./test.sh