Last Updated: February 25, 2016
·
1.709K
· hellowin

Fixing Vagrant on Windows: "/bin/sh^M : bad interpreter"

When we execute file in Linux, usually when it's shared from Windows environment, usually it thows an error like /bin/sh^M : bad interpreter.

The simplest solution is:
1. Open that file with vi
2. Change to command mode (ESC) then type:set fileformat=unix
3. Save :x!

It's done :D