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"