I am trying to lean Bash scripting from cygwin. When i manually type the following lines in command prompt, everything works and I see that the number from 1 to 10 are printed o
I am getting the same error in Notepad++. From this post, I changed Edit --> EOF Convertion, selected Unix/OSX Format, fixed this issue.