Bug#542430: Incorrect wildcard expansion when p_sh has arguments to the shell

2009-11-03 Thread Bram Moolenaar
James - > The code in src/os_unix.c:mch_expand_wildcards which detects what shell > is being used doesn't work properly if 'shell' has been set to a shell > and arguments (e.g., "/bin/tcsh -f"). > > 5354 else if ((len = STRLEN(p_sh)) >= 3) > 5355 { > 5356 if (STRCMP(p_sh + len -

Bug#542430: Incorrect wildcard expansion when p_sh has arguments to the shell

2009-11-03 Thread James Vega
Bram, The code in src/os_unix.c:mch_expand_wildcards which detects what shell is being used doesn't work properly if 'shell' has been set to a shell and arguments (e.g., "/bin/tcsh -f"). 5354 else if ((len = STRLEN(p_sh)) >= 3) 5355 { 5356 if (STRCMP(p_sh + len - 3, "csh") == 0) 5

Bug#542430: Incorrect wildcard expansion when p_sh has arguments to the shell

2009-11-03 Thread James Vega
On Tue, Nov 03, 2009 at 10:52:28PM +0100, Bram Moolenaar wrote: > > James - > > > The code in src/os_unix.c:mch_expand_wildcards which detects what shell > > is being used doesn't work properly if 'shell' has been set to a shell > > and arguments (e.g., "/bin/tcsh -f"). > > > > 5354 else if