From e371e46fa07eb850d28bc5738e04e6575c32be2e Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 12 Jan 2014 08:48:46 +0000 Subject: shell: add \r to IFS When commands run in backquotes generated multiple lines of output the carriage returns weren't being removed. Adding \r to IFS fixes this. --- shell/shell_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/shell_common.c b/shell/shell_common.c index 782d47285..52e1025a2 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -20,7 +20,11 @@ #include "shell_common.h" #include /* getrlimit */ +#if !ENABLE_PLATFORM_MINGW32 const char defifsvar[] ALIGN1 = "IFS= \t\n"; +#else +const char defifsvar[] ALIGN1 = "IFS= \t\n\r"; +#endif int FAST_FUNC is_well_formed_var_name(const char *s, char terminator) -- cgit v1.2.3-55-g6feb