From 177ce0d40e44818a79af43f472517f697246d395 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 29 Jan 2023 14:44:59 +0100 Subject: [PATCH] __fish_make_completion_signals: Check for "kill" --- share/functions/__fish_make_completion_signals.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/functions/__fish_make_completion_signals.fish b/share/functions/__fish_make_completion_signals.fish index e57e179ed..4891fd587 100644 --- a/share/functions/__fish_make_completion_signals.fish +++ b/share/functions/__fish_make_completion_signals.fish @@ -19,6 +19,12 @@ function __fish_make_completion_signals --description 'Make list of kill signals return end + # If we don't have a kill, we don't try to run it. + # We require a kill *command* because we used to unconditionally define + # a wrapper (to allow %foo expansion) + command -q kill + or return + # Some systems use the GNU coreutils kill command where `kill -L` produces an extended table # format that looks like this: #