Coding Using Linux Beta

I am trying to code on my chrome book using the new linux beta but every time i try to do something as simple as


I get an error message that says
-bash: syntax error near unexpected token `newline’
any help?

Sounds like your file probably has the wrong type of line endings. There is a special character that indicates the end of a line. These are different depending on your operating system, so a file saved with Windows line endings will cause an error on Linux and vice versa.

1 Like