On 12/12/20 5:54 AM, Oğuz wrote:
In Bash 5.1, Ctrl-C doesn't interrupt the command below. The only way out I
guess is to stop it Ctrl-Z and run `kill %%`, but that's really too much
work.
cat <<!
`sleep 10`
!
This isn't reproducible with Bash 5.0 or Bash 4.4.
It's not a signal blocking problem. It's a combination of an interactive
shell and the shell forked to run the command substitution inside the shell
forked to run `cat', which is running the redirection. The issue is that
the child running the command subsitition is not placed into the correct
process group, so its process group is not the same as the terminal's. It
should join its parent's process group.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/