Windows/Unix line-endings for files in /vagrant shared dir

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows/Unix line-endings for files in /vagrant shared dir

BaltoStar
Windows 7 Enterprise SP1 
Oracle VM Virtual Box 4.2.16
Ubuntu 12.04 LTS Server 64-bit

If use Windows editor for files located in the /vagrant shared dir , problem is line-endings are saved as CRLF 0A0D which leads to syntax errors for scripts run in bash, etc.

Does anyone have a solution for this ?

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Windows/Unix line-endings for files in /vagrant shared dir

Torben Knerr

Use an editor which can convert to unix line endings, e.g. notepad++ or sublime text or ... any sane editor except windows notepad should be able to do this ;-)

On Jul 27, 2013 4:50 AM, "BaltoStar" <[hidden email]> wrote:
Windows 7 Enterprise SP1 
Oracle VM Virtual Box 4.2.16
Ubuntu 12.04 LTS Server 64-bit

If use Windows editor for files located in the /vagrant shared dir , problem is line-endings are saved as CRLF 0A0D which leads to syntax errors for scripts run in bash, etc.

Does anyone have a solution for this ?

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.