Hi,
Unlike other instances I've searched for of syntax errors for a shell script (EOL not using unix format), I'm getting general syntax problems for code that has no syntax errors.
I downloaded win-bash from http://win-bash.sourceforge.net/ to be able to run shell, which I can get into fine, I just can't execute the following code via a shell script:
#!/bin/bash
for ((i = 0; i <= 100; i++)); do
echo "Number $i"
done
echo "Done"
I get the following errors
test.sh: syntax error near unexpected token '(('
test.sh: test.sh: line 3: 'for ((i = 0; i <= 100; i++)); do'
Any help would be appreciated, thanks.
Bookmarks