Bug#699172: [patch] sh-detection cleanup

James McCoy jamessan at debian.org
Mon Jun 24 02:45:18 UTC 2013


Hi Charles,

The attached patch updates the part of the sh syntax file that tries to
detect what type of shell "sh" actually is in a few ways.

1. Simplify the logic so resolve() is only called once per location that
   should be checked.

2. Fix a bug by letting g:is_kornshell instead of g:is_ksh.

3. Add recognition of dash (http://gondor.apana.org.au/~herbert/dash/,
   default /bin/sh of Debian & Ubuntu) as a shell that warrants letting
   g:is_posix.

Thanks in advance for considering these changes.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh-dash.diff
Type: text/x-diff
Size: 1070 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20130623/347e9d99/attachment.diff>
-------------- 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/347e9d99/attachment.sig>


More information about the pkg-vim-maintainers mailing list