conch-parser
conch-parser copied to clipboard
Bash Compatibility: Subscripts
conch-parser is currently unable to parse subscripts in variable substitutions.
echo "${BASH_SOURCE[0]}"
# ^^^ -- BadSubst(SquareOpen, ...)
It also doesn't correctly parse variable assignments with subscripts, using redirects_or_cmd_words instead of redirect_or_env_vars:
arr[0]="value"
arr["key"]="value"
Reference: https://www.gnu.org/software/bash/manual/html_node/Arrays.html