From 8fe87a0df5f6010e7511d6c4635cf800ce03f314 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Mar 2022 11:13:40 +0530 Subject: [PATCH] Search PATH when executing login shell --- 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 0da89a239..b00ce9652 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -245,7 +245,7 @@ using_python() { execute_with_python() { if detect_python; then - exec $python -c "import os; os.execl('$login_shell', '-' '$shell_name')" + exec $python -c "import os; os.execlp('$login_shell', '-' '$shell_name')" fi return 1; }