On Thursday, March 19, 2015 at 6:58:53 PM UTC+13, Yuri wrote:

> OS is FreeBSD, vim-7.4.657, #!/bin/sh is Bourne shell,

IIRC arithmetic evaluation $(()) and process execution using $() were not in 
the original Bourne shell, they are POSIX features (that came first from the 
Korn shell I think).

> adding 'let 
> g:is_sh=1' into ~/.vimrc didn't change anything

I wouldn't expect it to, that's what I had to add to reproduce your problem.  
However, I think if you add

let g:is_posix = 1

as well you'll be good, without adding bash or ksh support.  I suspect you've 
really got an Almquist shell.  Note that vim's help in syntax.txt says

        posix: (using this is the same as setting is_kornshell to 1)
        let g:is_posix     = 1

but my reading of syntax/sh.vim suggests this is no longer quite true.

Regards, John Little

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui