Bin sh bad interpreter no such file or directory cygwin


















Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Linked Related 6. Improve this answer. Or install and use the dos2unix program. This one did it! The script was maybe from an earlier Mac OS version?

Show 6 more comments. Thanks, dos2unix is also available for macOS via brew. The Problem ist you edit with Dos! DaFreder DaFreder 1 1 silver badge 2 2 bronze badges. Pankaj Sain Pankaj Sain 51 1 1 bronze badge.

See above answer about using :fileformat which is IMHO better for handling this than global substitution Also, see stackoverflow. This is yet another simple way to fix your file 'in place' fromdos file It's available in package tofrodos : sudo apt-get install tofrodos. Seth Usually Left or right-clicking the label should display the options you have. There you have it. Found this article interesting? Lua 5. So this:! See also Flax Engine 1. I would still use dos2unix yourscript to fix it.

If it were a CRLF problem, you wouldn't see a! The error message was probably just inaccurately transcripted.. It is sad how incompatible Microsoft is. Show 6 more comments. BOM can be removed easily using awk, as in stackoverflow. Actualy, the right shebang for bash script is this:! Perhaps a better phrase would be "less error-prone".

Answers should be self-contained as much as possible. Better yet, you should explain how this answers the question. Very quick fix without downloading more windows tools, thanks! G-Man Other answers already mention this in much better detail than I wish to go into. No need to repeat, but if it's not painfully obvious, you can have a WIndows line ending and a hidden Windows BOM character.

I think a lot of people that are scanning answers appreciate brevity instead of being self contained, especially when there is much more detail in other answers. If you don't have dos2unix this is a way to fix this issue. GAD3R



0コメント

  • 1000 / 1000