Msys also has a weird kill

Like Cygwin, it doesn't feature an option to list the signals, so we
simply hardcode them.

Fixes #8046.
This commit is contained in:
Fabian Homborg 2021-06-05 11:15:53 +02:00
parent 1fc6f77378
commit 155160e49b

View file

@ -6,7 +6,9 @@ function __fish_make_completion_signals --description 'Make list of kill signals
# Cygwin's kill is special, and the documentation lies.
# Just hardcode the signals.
if uname | string match -q 'CYGWIN*'
set -l os (uname)
if string match -q 'CYGWIN*' -- $os
or string match -iq 'Msys' -- $os
set -a __kill_signals "1 HUP" "2 INT" "3 QUIT" "4 ILL" "5 TRAP" "6 ABRT" \
"6 IOT" "7 BUS" "8 FPE" "9 KILL" "10 USR1" "11 SEGV" \
"12 USR2" "13 PIPE" "14 ALRM" "15 TERM" "16 STKFLT" "17 CHLD" \