From a502e9495054993022f65d507dd631a12f785f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Wed, 3 May 2023 18:35:30 +0200 Subject: [PATCH] bash_integration: Do not leak variable `i` With shell-integration, the user would see the last value of this variable (as set by the shell-integration script. Fix this by making it local. --- shell-integration/bash/kitty.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 835024581..621ca90f9 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -80,7 +80,7 @@ _ksi_prompt=( ) _ksi_main() { - builtin local ifs="$IFS" + builtin local ifs="$IFS" i IFS=" " for i in ${KITTY_SHELL_INTEGRATION[@]}; do case "$i" in