mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-12 05:15:24 +08: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
@ -6,7 +6,9 @@ function __fish_make_completion_signals --description 'Make list of kill signals
|
|||||||
|
|
||||||
# Cygwin's kill is special, and the documentation lies.
|
# Cygwin's kill is special, and the documentation lies.
|
||||||
# Just hardcode the signals.
|
# 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" \
|
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" \
|
"6 IOT" "7 BUS" "8 FPE" "9 KILL" "10 USR1" "11 SEGV" \
|
||||||
"12 USR2" "13 PIPE" "14 ALRM" "15 TERM" "16 STKFLT" "17 CHLD" \
|
"12 USR2" "13 PIPE" "14 ALRM" "15 TERM" "16 STKFLT" "17 CHLD" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user