diff options
author | Rob Landley <rob@landley.net> | 2020-10-19 18:56:59 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-10-19 18:56:59 -0500 |
commit | d0d4107534ac1b7c6ebf8d1e194d7c58ed0e5c52 (patch) | |
tree | 5caa353a5918ab275eea1bdc169fc73d1f7f8f04 /toys | |
parent | 273c9e72c1a578915cc4db6a83ca5e0f6a1771f4 (diff) | |
download | toybox-d0d4107534ac1b7c6ebf8d1e194d7c58ed0e5c52.tar.gz |
More tests, and a workaround to pass one of them.
(The bug is that "echo hello \" followed by just enter should end the $PS2
state but it persists when the line is empty because resulting collated line
still ends with \ so it wants another line.)
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 5590812a..784c7a01 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -3560,7 +3560,7 @@ void source_main(void) break; } - if (1!=(prompt = parse_line(new ? : "", &scratch))) { + if (1!=(prompt = parse_line(new ? : " ", &scratch))) { if (!prompt) run_function(scratch.pipeline); free_function(&scratch); if (!new) { |