Date: Fri, 20 Mar 2015 10:12:04 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198728] [editors/vim] Setting g:is_posix=1 as default because BSD shell has certain POSIX syntax in /bin/sh Message-ID: <bug-198728-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: yuri@rawbw.com Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198728-13>