Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first for loop example does not work #29

Open
rblath opened this issue Apr 6, 2017 · 0 comments
Open

first for loop example does not work #29

rblath opened this issue Apr 6, 2017 · 0 comments

Comments

@rblath
Copy link

rblath commented Apr 6, 2017

First of all, thanks for the amazing bash summary!
I think I found a problem with the first for loop example.
It is not working as intended:

for x := 1 to 10 do
begin
statements
end

Testing on Ubuntu 16.04 and cygwin results in this error:
-bash: syntax error near unexpected token `:='

A logical replacement would be:

for x in {1..10}
do
echo $x
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant