Bash - seamlessly run scripts with CRLF line endings

后端 未结 4 1026
栀梦
栀梦 2020-12-31 03:45

I am using VM (in my case simply boot2docker) to run docker containers on Windows host. For convinience, my source files are mapped from host file system, so text files are

4条回答
  •  时光取名叫无心
    2020-12-31 04:32

    The best solution I have is to make sure to use editors (like Notepad++ or Sublime Text) able to save directly with the proper eol style.

    That way, I don't have to dos2unix any file in my boot2docker session.

提交回复
热议问题