From ea28951e0ebd50e2b86252c201fab8c557eacaab Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 11 Mar 2022 15:42:34 +0800 Subject: [PATCH] Fall back to run the shell without -l option --- shell-integration/ssh/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index c634ad769..e4d0f6169 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -475,3 +475,6 @@ execute_with_python execute_with_perl execute_sh_with_posix_env exec "$login_shell" "-l" + +printf "%s\n" "Could not execute the shell as a login shell" > /dev/stderr +exec "$login_shell"