From 2fe06c88d9f248f8724e196d740adcf49ec41295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Mon, 2 Jul 2018 19:26:06 +0200 Subject: [PATCH] Do not rely on implicit NULLCMD=cat --- src/async.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index ee39332..eefdf4a 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -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" diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 4de4e2a..be784b6 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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"