Bug#450410: Acknowledgement (syntax/sh.vim: posix parameter expansions)

2007-11-07 Thread Vineet Kumar
From further reading of the comments in syntax.vim, it seems that
/bin/sh is intentionally treated separately from Posix compliant
shell.  So this report may be invalid entirely.  In particular, I
noticed this when I was about to enable the $() command substitution to
not highlight as an error.

I'm thinking about manually setting the b:is_kornshell variable to
enable the posix-compliant shell highlighting (but without the
bashisms).  I don't know whether this will enable other non-posix
korn-specific stuff; I'm primarily using dash as my /bin/sh.

-- 
http://www.doorstop.net/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#450410: Acknowledgement (syntax/sh.vim: posix parameter expansions)

2007-11-07 Thread Vineet Kumar
Sure enough, if I just use

let g:is_posix=1 in my .vimrc, it all works as expected for
posix-compliant features.  Sorry for the noise; there's really no bug
here.

I guess maybe the fact that debian doesn't ship a non-posix /bin/sh may
cause a desire to set either is_posix or is_bash in the default config,
so vim doesn't highlight so many errors in #!/bin/sh scripts.  It's
pretty much a separate issue, though.

-- 
http://www.doorstop.net/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]