mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
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:
parent
1fc6f77378
commit
155160e49b
1 changed files with 3 additions and 1 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue