diff options
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index fb86e680f..03b7d0b75 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -204,15 +204,17 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | |||
204 | c = buffer[bufpos]; | 204 | c = buffer[bufpos]; |
205 | if (c == '\0') | 205 | if (c == '\0') |
206 | continue; | 206 | continue; |
207 | if (backslash) { | 207 | if (!(read_flags & BUILTIN_READ_RAW)) { |
208 | backslash = 0; | 208 | if (backslash) { |
209 | if (c != '\n') | 209 | backslash = 0; |
210 | goto put; | 210 | if (c != '\n') |
211 | continue; | 211 | goto put; |
212 | } | 212 | continue; |
213 | if (!(read_flags & BUILTIN_READ_RAW) && c == '\\') { | 213 | } |
214 | backslash = 1; | 214 | if (c == '\\') { |
215 | continue; | 215 | backslash = 1; |
216 | continue; | ||
217 | } | ||
216 | } | 218 | } |
217 | if (c == '\n') | 219 | if (c == '\n') |
218 | break; | 220 | break; |