Monday, August 1, 2011

Re: sh vs bash syntax coloring

Benjamin R. Haskell wrote:
> That solves the problem since the OP wants bash syntax. I don't.
> Is there a reason the constructs mentioned aren't included in "plain
> 'sh'" mode?

Not all shells support command substitution via $(...), even though it
is required by POSIX. The /bin/sh in Solaris comes to mind. If you know
you're using a compatible shell, you can specify:

let g:is_posix = 1

--
Simon Nicolussi, <Simon.Nicolussi@student.uibk.ac.at>
http://homepage.uibk.ac.at/~csag9583/

No comments: