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.
This commit is contained in:
Václav Kubernát 2023-05-03 18:35:30 +02:00
parent ea5634b3fd
commit a502e94950

View File

@ -80,7 +80,7 @@ _ksi_prompt=(
) )
_ksi_main() { _ksi_main() {
builtin local ifs="$IFS" builtin local ifs="$IFS" i
IFS=" " IFS=" "
for i in ${KITTY_SHELL_INTEGRATION[@]}; do for i in ${KITTY_SHELL_INTEGRATION[@]}; do
case "$i" in case "$i" in