I can't normally run sh scripts. It's confusing. I set the permissions to 777 and +x so it should work with the 'sh' command, right...
But it's working very strange. For example this scripts works ok:
it prints "hello" with no errors. But this script:
#!/bin/bash for i in `seq 1 5`; do echo $i done
...outputs this error:
Syntax error: end of file unexpected (expecting "done")
Is there something wrong with that loop?