On Mon, Jun 16, 2008 at 01:59:04PM +0100, Pádraig Brady wrote:
> 
> Charles E. Campbell, Jr. wrote:
> > Read   :help ft-sh-syntax  , in particular lines 2419-2435 .   FYI -- 
> > bash is not "dwindling".
> 
> You misunderstand I think. Obviously bash is not dwindling :)
> $() is OK for bash, dash, ash, ...
> It's only not OK for old Borne shells.

And highlighting is done for Borne shell by default.  If the script is
named or has a shebang line to indicate it is something other than
Borne, that alternate shell syntax is used.  You can also specify the
default shell syntax in your ~/.vimrc.

This is intentional behavior to encourage the user to define their
default shell syntax and is brought on by the many scripts that use
"#!/bin/sh" when they're not actually writing Borne shell syntax.  This
is all nicely explained in the help topic that Chip pointed out.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui