fix cosmetic error when printing if commands containing here-documents in the body; compiling -DSTRICT_POSIX now forces posix-mode shells to expand redirections before assignment statements preceding simple commands

This commit is contained in:
Chet Ramey
2026-03-03 11:14:10 -05:00
parent 044c1acc91
commit d0b41c2c5f
60 changed files with 526 additions and 7259 deletions
+1 -1
View File
@@ -843,7 +843,7 @@ print_if_command (IF_COM *if_command)
semicolon ();
if (was_heredoc)
{
indent (indentation_amount);
indent (indentation);
cprintf ("then\n");
was_heredoc = 0;
}