This commit is contained in:
Kovid Goyal
2022-02-22 21:32:33 +05:30
parent 0108037076
commit d4f4d56f94

View File

@@ -36,10 +36,7 @@ _ksi_main() {
if [[ -n "$KITTY_BASH_INJECT" ]]; then
builtin unset ENV;
if [[ "$KITTY_BASH_INJECT" == *"posix"* ]]; then
if [[ -n "$KITTY_BASH_POSIX_ENV" && -r "$KITTY_BASH_POSIX_ENV" ]]; then
builtin source "$KITTY_BASH_POSIX_ENV";
export ENV="$KITTY_BASH_POSIX_ENV";
fi
_ksi_safe_source "$KITTY_BASH_POSIX_ENV" && builtin export ENV="$KITTY_BASH_POSIX_ENV";
else
set +o posix;
# See run_startup_files() in shell.c in the BASH source code