Sublime Forum

Is there a Bash 4 syntax package?

#1

Hi,
This expression using Bash 4 associative arrays is not interpreted correctly as Shell code.
echo ${associative_array"${key}"]}

I tried looking into ~/Library/Application Support/Sublime Text 2/Packages/ShellScript/Shell-Unix-Generic.tmLanguage but I got lost. Any idea how it can be fixed?

0 Likes

#2

I updated ~/Library/Application Support/Sublime Text 2/Packages/ShellScript/Shell-Unix-Generic.tmLanguage and created a new file called Shell-Unix-Bash4.tmLanguage. Now it works with associative arrays:

pastie.org/2278560

0 Likes