From ccc405ec1441677fef395bd463e9544270d9cd92 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Sun, 4 Dec 2022 16:57:47 +0600 Subject: [PATCH] Fix Bash integration * integration/bash (__eat_enable_integration): Fix moving 'PROMPT_COMMAND' array elements. --- integration/bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/bash b/integration/bash index 49fdee2..1ef1669 100644 --- a/integration/bash +++ b/integration/bash @@ -65,8 +65,8 @@ __eat_enable_integration () # use something as silly and pityful as 'VAR=$PROMPT_COMMAND' to # copy a Bash array in VSCode Bash integration script, that simply # won't work ever, and then complain about Bash in the comments! - # LOL. ;D - for i in $(eval "printf {${#PROMPT_COMMAND[*]}..1..-1}") + # LOL. xD + for i in $(eval "echo {${#PROMPT_COMMAND[*]}..1..-1}") do PROMPT_COMMAND[$i]=${PROMPT_COMMAND[$((i-1))]} done