From 4d230f5035a023f8bb508dd3a007f036224d425e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Oct 2023 09:38:52 +0530 Subject: [PATCH] Fix #6695 --- shell-integration/bash/kitty.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index d42477a94..261ac556a 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -252,6 +252,7 @@ _ksi_main() { _ksi_prompt[ps2]="${_ksi_prompt[start_mark]}${_ksi_prompt[ps2]}${_ksi_prompt[end_mark]}" fi # BASH aborts the entire script when doing unset with failglob set, somebody should report this upstream + builtin local oldval oldval=$(builtin shopt -p failglob) builtin shopt -u failglob builtin unset _ksi_prompt[start_mark] _ksi_prompt[end_mark] _ksi_prompt[start_suffix_mark] _ksi_prompt[end_suffix_mark] _ksi_prompt[start_secondary_mark] _ksi_prompt[end_secondary_mark]