Home Download Buy Blog Forum Support

Is there a Bash 4 syntax package?

Is there a Bash 4 syntax package?

Postby nachocab on Mon Jul 25, 2011 5:20 pm

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?
nachocab
 
Posts: 23
Joined: Thu Jul 07, 2011 2:22 pm

Re: Is there a Bash 4 syntax package?

Postby nachocab on Wed Jul 27, 2011 9:43 am

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:

http://pastie.org/2278560
nachocab
 
Posts: 23
Joined: Thu Jul 07, 2011 2:22 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 14 guests