Date:        Fri, 3 May 2024 13:11:00 -0400
    From:        Chet Ramey <chet.ra...@case.edu>
    Message-ID:  <ae17d6ee-7972-4009-90a6-1ac3d99ea...@case.edu>


  | >> ./x1: line 2: 65124 Killed: 9               ( kill -9 $BASHPID )
  | > 
  | > Never seen this and it's ugly too. Oh well, at least it doesn't show
  | > the expanded arguments.
  |
  | It's been that way since 1995.

What I see (in 5.2, and 5.3 alpha 1) is:

jacaranda$ bash-5.3a1 -c '( kill -9 $BASHPID )'
bash-5.3a1: line 1: 29765 Killed                  ( kill -9 $BASHPID )

I have no idea what you think that "9" is useful for, IMO it is a
waste of space, and just confusing (and yes, I know SIGKILL is 9).

Similarly, in an interactive shell I see:

jacaranda$ ( kill -9 $BASHPID )
Killed

That's perfectly good enough for me, no need to change things for no good
reason.

kre


Reply via email to