mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-03 08:48:14 +02:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user