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

EOL errors in latest oh-my-zsh #4665

Closed
dogrizz opened this issue Dec 3, 2015 · 3 comments
Closed

EOL errors in latest oh-my-zsh #4665

dogrizz opened this issue Dec 3, 2015 · 3 comments

Comments

@dogrizz
Copy link

dogrizz commented Dec 3, 2015

/home/login/.oh-my-zsh/tools/check_for_upgrade.sh:2: command not found: ^M
/home/login/.oh-my-zsh/tools/check_for_upgrade.sh:3: invalid module name `zsh/datetime^M'
/home/login/.oh-my-zsh/lib/functions.zsh:25: parse error near `in^M'
/home/login/.oh-my-zsh/lib/termsupport.zsh:21: parse error near `elif'

dos2unix on those files seems to solve the issue.
I upgraded today.

@apjanke
Copy link
Contributor

apjanke commented Dec 3, 2015

Are you on Cygwin/Windows? Check to see if you have your git configured to do autocrlf. That could cause this. The files in the repo are checked in with Unix mode line endings.

(There's a pending PR #4071 to keep that from happening, regardless of user configuration.)

@dogrizz
Copy link
Author

dogrizz commented Dec 4, 2015

I'm on ubuntu. Will check the autocrlf.

@maxmumford
Copy link

I had this problem on Mac after updating ZSH today. Fixed with:

cd ~/.oh-my-zsh/
find . -name "*.*" | xargs dos2unix

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

4 participants