fix for incomplete multibyte characters in pasted input; fix for syntax errors while entering compound assignments; fix for jobs not removing jobs from the list in a SIGCHLD trap; fix for PS0 that contains a command substitution after interactive shell reads EOF; fix for non-interactive shell reading from stdin and evaling a command that dups stdin

This commit is contained in:
Chet Ramey
2023-05-04 11:19:43 -04:00
parent 23935dbe85
commit 896df2874a
16 changed files with 465 additions and 300 deletions
+4
View File
@@ -153,7 +153,10 @@ reader_loop (void)
if (interactive && ps0_prompt)
{
char *ps0_string;
int old_eof;
old_eof = EOF_Reached;
EOF_Reached = 0;
ps0_string = decode_prompt_string (ps0_prompt);
if (ps0_string && *ps0_string)
{
@@ -161,6 +164,7 @@ reader_loop (void)
fflush (stderr);
}
free (ps0_string);
EOF_Reached = old_eof;
}
current_command_number++;