]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.2 patch 32: fix printing coprocs when the coproc does not have a name
authorChet Ramey <chet.ramey@case.edu>
Thu, 1 Aug 2024 15:38:37 +0000 (11:38 -0400)
committerChet Ramey <chet.ramey@case.edu>
Thu, 1 Aug 2024 15:38:37 +0000 (11:38 -0400)
patchlevel.h
print_cmd.c

index db0de52dfd937a5ee8ca07d46a55ce1fd29c7fb3..12ad882fb8ea87f62b02ab62641955f2d5ce61a2 100644 (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_ */
index b815494714ce1943f98db74c511e762afd7b3874..a16c2486d4000a4b02d473a782a814894e3fece9 100644 (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;