diff --git a/.config/bash/complete_alias b/.config/bash/complete_alias index f70c08d..af5fb9e 100644 --- a/.config/bash/complete_alias +++ b/.config/bash/complete_alias @@ -375,7 +375,7 @@ __compal__split_cmd_line() { fi elif [[ "${sta[-1]}" == ')' ]]; then if [[ ')' == "${str:j:1}" ]]; then - unset sta[-1] + unset 'sta[-1]' elif [[ '$(' == "${str:j:2}" ]]; then sta+=( ')' ) (( j++ )) @@ -394,7 +394,7 @@ __compal__split_cmd_line() { fi elif [[ "${sta[-1]}" == '}' ]]; then if [[ '}' == "${str:j:1}" ]]; then - unset sta[-1] + unset 'sta[-1]' elif [[ '$(' == "${str:j:2}" ]]; then sta+=( ')' ) (( j++ )) @@ -413,7 +413,7 @@ __compal__split_cmd_line() { fi elif [[ "${sta[-1]}" == '`' ]]; then if [[ '`' == "${str:j:1}" ]]; then - unset sta[-1] + unset 'sta[-1]' elif [[ '$(' == "${str:j:2}" ]]; then sta+=( ')' ) (( j++ )) @@ -430,11 +430,11 @@ __compal__split_cmd_line() { fi elif [[ "${sta[-1]}" == "'" ]]; then if [[ "'" == "${str:j:1}" ]]; then - unset sta[-1] + unset 'sta[-1]' fi elif [[ "${sta[-1]}" == '"' ]]; then if [[ '"' == "${str:j:1}" ]]; then - unset sta[-1] + unset 'sta[-1]' elif [[ '$(' == "${str:j:2}" ]]; then sta+=( ')' ) (( j++ ))