Bash-5.2 patch 32: fix printing coprocs when the coproc does not have a name

This commit is contained in:
Chet Ramey
2024-08-01 11:38:37 -04:00
parent 471fd9a3f0
commit 142bbdd89e
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
#define PATCHLEVEL 31
#define PATCHLEVEL 32
#endif /* _PATCHLEVEL_H_ */
+3 -1
View File
@@ -356,7 +356,9 @@ make_command_string_internal (command)
break;
case cm_coproc:
cprintf ("coproc %s ", command->value.Coproc->name);
cprintf ("coproc ");
if (command->value.Coproc->command->type != cm_simple)
cprintf ("%s ", command->value.Coproc->name);
skip_this_indent++;
make_command_string_internal (command->value.Coproc->command);
break;