From ce30e3f0d1d2ceaad44a2e3550738b6bc71628a1 Mon Sep 17 00:00:00 2001 From: Adam Jimerson Date: Sun, 22 Dec 2019 00:28:44 -0500 Subject: [PATCH] Fall back to using bourne shell if $SHELL is Elvish (#571) If vim is launched from the Elvish shell, then fall back to using the bourne shell (sh) or a bourne compatible shell when calling {universal/exuberant-}ctags. Signed-off-by: Adam Jimerson --- autoload/tagbar.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 813c40b..2f3987d 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -2679,6 +2679,12 @@ function! s:ExecuteCtags(ctags_cmd) abort set shell=sh endif + if &shell =~# 'elvish' + " Reset shell since Elvish isn't really compatible + let shell_save = &shell + set shell=sh + endif + if exists('+shellslash') let shellslash_save = &shellslash set noshellslash