Fix variable leaking in completion kill

This commit is contained in:
Daniel Zhang 2020-02-22 18:07:57 +08:00 committed by Fabian Homborg
parent a410dcb5c2
commit ff29d81532

View File

@ -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"