From d0d4107534ac1b7c6ebf8d1e194d7c58ed0e5c52 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 19 Oct 2020 18:56:59 -0500 Subject: 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.) --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending') 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) { -- cgit v1.2.3