Skip to content

Commit 142bbdd

Browse files
author
Chet Ramey
committed
Bash-5.2 patch 32: fix printing coprocs when the coproc does not have a name
1 parent 471fd9a commit 142bbdd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

patchlevel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
2626
looks for to find the patch level (for the sccs version string). */
2727

28-
#define PATCHLEVEL 31
28+
#define PATCHLEVEL 32
2929

3030
#endif /* _PATCHLEVEL_H_ */

print_cmd.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ make_command_string_internal (command)
356356
break;
357357

358358
case cm_coproc:
359-
cprintf ("coproc %s ", command->value.Coproc->name);
359+
cprintf ("coproc ");
360+
if (command->value.Coproc->command->type != cm_simple)
361+
cprintf ("%s ", command->value.Coproc->name);
360362
skip_this_indent++;
361363
make_command_string_internal (command->value.Coproc->command);
362364
break;

0 commit comments

Comments
 (0)