Do not rely on implicit NULLCMD=cat

This commit is contained in:
Martin Väth 2018-07-02 19:26:06 +02:00
parent 2743a2e84c
commit 2fe06c88d9
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ _zsh_autosuggest_async_request() {
# Second arg will be passed in case of error
_zsh_autosuggest_async_response() {
# Read everything from the fd and give it as a suggestion
zle autosuggest-suggest -- "$(<&$1)"
zle autosuggest-suggest -- "$(cat <&$1)"
# Remove the handler and close the fd
zle -F "$1"

View file

@ -723,7 +723,7 @@ _zsh_autosuggest_async_request() {
# Second arg will be passed in case of error
_zsh_autosuggest_async_response() {
# Read everything from the fd and give it as a suggestion
zle autosuggest-suggest -- "$(<&$1)"
zle autosuggest-suggest -- "$(cat <&$1)"
# Remove the handler and close the fd
zle -F "$1"