speedups for character processing in a multibyte locale when expanding $'...'; cosmetic fix for select command when read returns EOF; fix for a forced interactive shell running under emacs with a pipe for stdin; fix for local nameref variables with the same name as variables in a function's temporary environment; fix for x=y local -n x' not making x' visible as a local variable; turn off nameref attribute for local nameref variables converted to arrays

This commit is contained in:
Chet Ramey
2025-10-27 10:42:10 -04:00
parent 403b32faf6
commit c299f535be
14 changed files with 262 additions and 78 deletions
+3 -3
View File
@@ -1846,9 +1846,9 @@ yy_stream_get (void)
result = EOF;
if (bash_input.location.file)
{
/* XXX - don't need terminate_immediately; getc_with_restart checks
/* XXX - don't need terminate_immediately; stream_getc checks
for terminating signals itself if read returns < 0 */
result = getc_with_restart (bash_input.location.file);
result = stream_getc (bash_input.location.file);
}
return (result);
}
@@ -1856,7 +1856,7 @@ yy_stream_get (void)
static int
yy_stream_unget (int c)
{
return (ungetc_with_restart (c, bash_input.location.file));
return (stream_ungetc (c, bash_input.location.file));
}
void