[Bug 198728] [editors/vim] Setting g:is_posix=1 as default because BSD shell has certain POSIX syntax in /bin/sh
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 20 10:12:04 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198728
Bug ID: 198728
Summary: [editors/vim] Setting g:is_posix=1 as default because
BSD shell has certain POSIX syntax in /bin/sh
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: sunpoet at FreeBSD.org
Reporter: yuri at rawbw.com
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Assignee: sunpoet at FreeBSD.org
The attached patch corrects the problem when valid syntax like this:
> val=$((some_variable - 1))
> val=$(some_function_or_command)
> val=$(${SOME_VAR} arg1 arg2)
is marked as red in syntax highlighter, because $() is the POSIX feature, and
vim needs this enabled. Since BSD runs such shell, it makes sense to enable it
by default.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list