Re: Bash spews bracketed-paste escape sequences when handling signal.
From:
Chet Ramey
Subject:
Re: Bash spews bracketed-paste escape sequences when handling signal.
Date:
Thu, 19 Dec 2024 10:58:26 -0500
User-agent:
Mozilla Thunderbird
On 12/18/24 4:56 PM, Kaz Kylheku wrote:
(That would be an issue if we had used eval:
eval 'command ... $$ ...' &
now we backgrounded the eval, which then in the background
process parses the shell syntax and does all the expanding.
Now $$ is the PID of the background process, not that of
the shell which launched it.)
No, that's not sufficient to reset $$. This is why $BASHPID exists.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/