Prevent parameter value being interpreted as kill flag

This commit is contained in:
Eric Freese 2023-08-25 15:20:40 -06:00
parent 6259d46d36
commit 84c7cfaa89
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ _zsh_autosuggest_async_request() {
# We won't know the pid unless the user has zsh/system module installed # We won't know the pid unless the user has zsh/system module installed
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
kill -TERM $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null kill -TERM -- $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
fi fi
fi fi

View file

@ -771,7 +771,7 @@ _zsh_autosuggest_async_request() {
# We won't know the pid unless the user has zsh/system module installed # We won't know the pid unless the user has zsh/system module installed
if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then
kill -TERM $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null kill -TERM -- $_ZSH_AUTOSUGGEST_CHILD_PID 2>/dev/null
fi fi
fi fi