From 464d33fa9a84dc4493e70b81a0be4ac461aa6491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Leirv=C3=A5g?= Date: Wed, 15 May 2019 16:00:16 +0200 Subject: [PATCH] Windows subsystem CRLF issues fix Add extra tip to linux sbsystem, where users get the error "$'\r': command not found" where windows uses CRLF and linux uses only LF --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ea649fe4..f8638961 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,9 @@ Now your Ubuntu subsystem is ready to use the automatic `PF-build.sh` script and - Example: You files are under `C:\Users\\Downloads\Prusa-Firmware-MK3` - use under Ubuntu the following command `cd /mnt/c/Users//Downloads/Prusa-Firmware-MK3` to change to the right folder +- Unix and windows have different line endings (LF vs CRLF), try dos2unix to convert + - This should fix the `"$'\r': command not found"` error + - to install run `apt-get install dos2unix` #### Compile Prusa-firmware with Ubuntu Linux subsystem installed - open Ubuntu bash