Prevent parameter value being interpreted as kill flag

This commit is contained in:
Eric Freese committed 2023-08-25 16:29:02 -06:00
1 parent 6259d46d36
commit 84c7cfaa89
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ _zsh_autosuggest_async_request() {
# We won't know the pid unless the user has zsh/system module installed
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
+1 -1
View File
@@ -771,7 +771,7 @@ _zsh_autosuggest_async_request() {
# We won't know the pid unless the user has zsh/system module installed
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