From 14d391cc2e115d052cefe9873c3b50d3f33233fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Mar 2022 11:43:33 +0530 Subject: [PATCH] Check $pipestatus for zsh as well --- shell-integration/ssh/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index b00ce9652..0f67f8597 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -338,7 +338,7 @@ esac # We need to pass the first argument to the executed program with a leading - # to make sure the shell executes as a login shell. Note that not all shells # support exec -a so we use the below to try to detect such shells -if [ -z "$PIPESTATUS" ]; then +if [ -z "$PIPESTATUS$pipestatus" ]; then # the dash shell does not support exec -a and also does not define PIPESTATUS execute_with_python exec $login_shell "-l"