Bug#712657: sh-syntax classifies $() as error

James McCoy jamessan at debian.org
Mon Jun 24 01:43:42 UTC 2013

On Tue, Jun 18, 2013 at 12:55:42PM +0200, martin f krafft wrote:
> This $(shell construct) is almost identical to `this one`, except
> the first implicitly quotes the result and may be arbitrarily
> nested. Both are POSIX-compliant.
> The sh syntax plugin unfortunately claims that $(such an expression)
> is an error and causes the leader and closing parentheses to be
> highlighted as Error.

":help ft-sh-syntax" describes how to default to POSIX-compliant
highlighting in your environment.

> Since all Debian shells including dash (the default) support $(),
> I suggest to either remove the conditional in that paragraph, or to
> apply the following minimal patch in the Debian package.

I explained in #552108 why I don't agree which such a change.  I was
considering merging these bugs, but maybe the below suggestion will be
sufficient.  In that case, I'll instead merge with #699172.

On Sun, Jun 23, 2013 at 04:01:38PM -0400, sacrificial-spam-address at horizon.com wrote:
> Pehaps a better solution would be to update the symlink resolution code
> at the top of sh.vim (line 30 et seq.) to know about dash.

GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20130623/71b81bfc/attachment.sig>

More information about the pkg-vim-maintainers mailing list