Sublime Forum

Sublime Text Error with Bash Scripting

#1

I have found that the syntax highlighting for Bash is not correct. It normally works, but anytime I type something like
user="$((who -m | awk '{print $1;}') 2>&1)"
it breaks for the rest of the file. Is there a solution to this?

0 Likes

#2

unfortunately there is no solution to this at present, but the ShellScript syntax definition is set to get a complete rewrite soon, which will address this. keep an eye on https://github.com/sublimehq/Packages/issues/434 for progress

0 Likes

#3

Currently, you may try ShellScriptImproved.

Not perfect but it works anyway.

0 Likes