You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-003
  5. Bug-Reported-by: oguzismailuysal@gmail.com
  6. Bug-Reference-ID: <CAH7i3LpG91BnNcDtaTUm2Ph7a+PnJkuh6nAc87cVL7_38tOaMQ@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00050.html
  8. Bug-Description:
  9. Bash does not put a command substitution process that is started to perform an
  10. expansion in a child process into the right process group where it can receive
  11. keyboard-generated signals.
  12. Patch (apply with `patch -p0'):
  13. --- a/subst.c
  14. +++ b/subst.c
  15. @@ -6356,8 +6356,10 @@ command_substitute (string, quoted, flag
  16. #if defined (JOB_CONTROL)
  17. old_pipeline_pgrp = pipeline_pgrp;
  18. - /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline. */
  19. - if ((subshell_environment & SUBSHELL_PIPE) == 0)
  20. + /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline or
  21. + we've already forked to run a disk command (and are expanding redirections,
  22. + for example). */
  23. + if ((subshell_environment & (SUBSHELL_FORK|SUBSHELL_PIPE)) == 0)
  24. pipeline_pgrp = shell_pgrp;
  25. cleanup_the_pipeline ();
  26. #endif /* JOB_CONTROL */
  27. --- a/patchlevel.h
  28. +++ b/patchlevel.h
  29. @@ -25,6 +25,6 @@
  30. regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
  31. looks for to find the patch level (for the sccs version string). */
  32. -#define PATCHLEVEL 2
  33. +#define PATCHLEVEL 3
  34. #endif /* _PATCHLEVEL_H_ */