termux-packages/x11-packages/vim-gtk/runtime-syntax-sh.vim.patch

18 lines
638 B
Diff
Raw Normal View History

2022-04-07 12:46:15 +02:00
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -25,10 +25,10 @@
" the script itself does not specify which shell to use. FYI: /bin/sh is ambiguous.
" Assuming /bin/sh is executable, and if its a link, find out what it links to.
let s:shell = ""
- if executable("/bin/sh")
- let s:shell = resolve("/bin/sh")
- elseif executable("/usr/bin/sh")
- let s:shell = resolve("/usr/bin/sh")
+ if executable("@TERMUX_PREFIX@/bin/sh")
+ let s:shell = resolve("@TERMUX_PREFIX@/bin/sh")
+ elseif executable("/system/bin/sh")
+ let s:shell = resolve("/system/bin/sh")
endif
if s:shell =~ '\<ksh\>'
let b:is_kornshell= 1