From fb84c137b56b5725401da33067e4ffbe03874e90 Mon Sep 17 00:00:00 2001 From: Daniel Zhang Date: Sat, 22 Feb 2020 18:07:57 +0800 Subject: [PATCH] Fix variable leaking in completion `kill` (cherry picked from commit ff29d815328f737a1034ab1cf37b3b7d1d90f037) --- share/completions/kill.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/kill.fish b/share/completions/kill.fish index ea11bb0f5..d9093c9c2 100644 --- a/share/completions/kill.fish +++ b/share/completions/kill.fish @@ -1,8 +1,8 @@ __fish_make_completion_signals for sig in $__kill_signals[-1..1] - set number (string split ' ' $sig)[1] - set name (string split ' ' $sig)[2] + set -l number (string split ' ' $sig)[1] + set -l name (string split ' ' $sig)[2] complete -c kill -o $number -d $name complete -c kill -o $name -d $number complete -c kill -k -s s -x -a "$name\t$number"