merge from open-source master

Change-Id: I6262a725068f89c989e2e6706bcd220ddb217c8e
diff --git a/sh/input.c b/sh/input.c
index 9377bd0..bfb80f4 100644
--- a/sh/input.c
+++ b/sh/input.c
@@ -221,7 +221,7 @@
                     /* Add non-blank lines to history. */
                     linenoiseHistoryAdd(rl_start);
                 }
-                out2str("\r\n");
+                out2str("\n");
                 /* Client expects a newline at end of input, doesn't expect null */
                 rl_start[el_len++] = '\n';
             }