-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Describe the bug
Kitty's addition of --posix to bash command line for integration injection makes the injection non-transparent and can break user scripts. In particular, --posix causes bash to enable the inherit_errexit shell option. inherit_errexit remains enabled even after kitty.bash resets the posix shell option.
inherit_errexit being unexpectedly enabled can break sourced shell functions in subtle and hard-to-guess ways.
To Reproduce
Steps to reproduce the behavior:
- Launch bash in kitty with integration enabled
- Run
shopt -p inherit_errexit - Observe that
inherit_errexitis enabled - Run the same command in xterm and observe that
inherit_errexitis disabled
Reactions are currently unavailable