ACE changing line endings in .SH file to DOS mode
Created by: petergus
i have some bash scripts in my repo and when i edit with the inline editor and then pull the changes to the server two strange things happen.
- it replace ALL the text, not just the lines changed (git diff show all as minus and then adding back everything. i believe this is related to 2.
- it changes the mode to dos. when i run the shell script again (after pulling the new changes) it get "/bin/bash^M: bad interpreter" running :set ff=unix in vim fixes it. also the permissions are changed (the file was 770 and after pull becomes something like 755)
all my machines involved are linux of mac so no chances to get dos. and for this example everything was happening on the server, ubuntu 10.04.