history builtin has a -H option to display history entries as they would be written to the history file; history builtin now takes a START-END range specifier for listing; fix stray semicolon when printing shell functions containing a case command; changes to stdin redirection detection in preparation for POSIX interp 1913

This commit is contained in:
Chet Ramey
2026-01-05 11:57:18 -05:00
parent 4b27601dfd
commit a43e08df2d
27 changed files with 1507 additions and 1063 deletions
+3 -1
View File
@@ -846,10 +846,12 @@ execute_command_internal (COMMAND *command, int asynchronous, int pipe_in, int p
}
#endif /* COMMAND_TIMING */
/* Is this a compound command with a redirection from stdin? POSIX interp
1913 makes it matter. */
if (shell_control_structure (command->type) && command->redirects)
{
stdin_redirected = stdin_redirects (command->redirects);
/*itrace("execute_command_internal: compound command with redirects: stdin_redirected = %d", stdin_redirected); */
/*itrace("execute_command_internal: compound command with redirects: stdin_redirected = %d", stdin_redirected);*/
}
#if defined (PROCESS_SUBSTITUTION)