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

env: bash\r: No such file or directory #27

Open
rafaelstz opened this issue Dec 21, 2017 · 10 comments
Open

env: bash\r: No such file or directory #27

rafaelstz opened this issue Dec 21, 2017 · 10 comments
Assignees
Labels

Comments

@rafaelstz
Copy link
Member

I've just made setup of env and a project. When running CURL command to init I get:

env: bash\r: No such file or directory
@rafaelstz
Copy link
Member Author

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

@hpatel123
Copy link

@rafaelstz You saved my day. Helpful. You know I spent 1 day for this. Thanks.

@CyrilZadorozhniy
Copy link

@rafaelstz You saved my day too.

@blendosantos
Copy link

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

Success, it worked perfectly for me. I was working on a Windows and I started using mac.

@FLYINGKRIPTO
Copy link

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

this saved my life... i wasted like 2-3 days in solving this problem. thankyou for this solution

@ankitjpk
Copy link

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

This saved my life tooo

@NoumanSakhawat
Copy link

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

you are real Life Saver

@fernandofedora
Copy link

Thank you
the truth this works very well a real life saver

@jamesmalin
Copy link

Great answer, thanks!

@nrubel
Copy link

nrubel commented Jun 14, 2020

Ok, here is how I fixed the issue,
I had to convert all files in the project directory:

Mac

brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Linux

sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff

Make sure that you're using on your Windows your git configured with this:

git config --global core.autocrlf input

This will instruct git to always commit text files with Linux line ending (\n).

Thanks brother. You are truly lifesaver.

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

No branches or pull requests

10 participants