From 377c71d9823be32c021a597d8d18c3234ed567c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Gu=C3=A9rin?= Date: Fri, 20 May 2016 11:13:45 +0100 Subject: [PATCH] Use /bin/sh as default shell. - /bin/bash is not part of OpenBSD. - We need only a POSIX shell, not bash specifically. Closes #340. --- autoload/gitgutter/async.vim | 4 ++-- autoload/gitgutter/utility.vim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index 12f89a8..d08160e 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -18,7 +18,7 @@ function! gitgutter#async#execute(cmd) abort if has('nvim') if has('unix') - let command = ["/bin/bash", "-c", a:cmd] + let command = ["/bin/sh", "-c", a:cmd] elseif has('win32') let command = ["cmd.exe", "/c", a:cmd] else @@ -49,7 +49,7 @@ function! gitgutter#async#execute(cmd) abort " only occurs when a file is not tracked by git). if has('unix') - let command = ["/bin/bash", "-c", a:cmd] + let command = ["/bin/sh", "-c", a:cmd] elseif has('win32') " Help docs recommend {command} be a string on Windows. But I think " they also say that will run the command directly, which I believe would diff --git a/autoload/gitgutter/utility.vim b/autoload/gitgutter/utility.vim index 2415b97..3135453 100644 --- a/autoload/gitgutter/utility.vim +++ b/autoload/gitgutter/utility.vim @@ -186,7 +186,7 @@ function! gitgutter#utility#use_known_shell() abort if has('unix') let s:shell = &shell let s:shellcmdflag = &shellcmdflag - set shell=/bin/bash + set shell=/bin/sh set shellcmdflag=-c endif endfunction