On Thu, Apr 28, 2016 at 10:05:56PM +0300, Dmitri Vereshchagin wrote:
> The reason of this behavior is that /bin/sh on these two systems is
> a symbolic link. On Debian it points to dash and on Red Hat it points
> to bash.
>
> These two shells have slightly different syntax. [...]
> Among the other things Vim resolves /bin/sh to determine which shell
> type is in use. To force bash syntax you can append filename with .bash
> suffix or specify bash in shebang explicitly.
I'm very familiar with the differences in POSIX shell syntax and
Bash-specific constructs, and I already explicitly use "#!/usr/bin/env
bash" for all Bash scripts and "#!/bin/sh" for things I want to be
portable. Changing the symlink on my Debian box does fix the "function"
keyword highlighting. It seems strange to me that symlink resolution
takes precedence over the shebang line.
Eric
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment