Search PATH when executing login shell

This commit is contained in:
Kovid Goyal 2022-03-06 11:13:40 +05:30
parent ff01df3b16
commit 8fe87a0df5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -245,7 +245,7 @@ using_python() {
execute_with_python() { execute_with_python() {
if detect_python; then 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 fi
return 1; return 1;
} }