7 Bug-Reported-by: Albert Akchurin <ackbeat@gmail.com>
8 Bug-Reference-ID: Mon, 11 Dec 2023 20:41:58 +0600
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2023-12/msg00047.html
13 Patch (apply with `patch -p0'):
15 When printing functions containing coprocesses, the displayed coproc command
16 has the word COPROC inserted unconditionally, resulting in function bodies
17 that cannot be re-read as input.
19 *** ../bash-5.2-patched/print_cmd.c Mon Aug 21 16:09:44 2023
20 --- print_cmd.c Mon Dec 11 15:34:30 2023
25 ! cprintf ("coproc %s ", command->value.Coproc->name);
27 make_command_string_internal (command->value.Coproc->command);
31 ! cprintf ("coproc ");
32 ! if (command->value.Coproc->command->type != cm_simple)
33 ! cprintf ("%s ", command->value.Coproc->name);
35 make_command_string_internal (command->value.Coproc->command);
37 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
38 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
41 looks for to find the patch level (for the sccs version string). */
43 ! #define PATCHLEVEL 31
45 #endif /* _PATCHLEVEL_H_ */
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 32
51 #endif /* _PATCHLEVEL_H_ */