1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: 'shellcmdflag' only works with one flag.
12 Solution: Split into multiple arguments. (Gary Johnson)
16 *** ../vim-7.3.268/src/os_unix.c 2011-08-04 19:36:47.000000000 +0200
17 --- src/os_unix.c 2011-08-04 20:27:13.000000000 +0200
24 + char_u *p_shcf_copy = NULL;
29 int pty_master_fd = -1; /* for pty's */
38 + * Account for possible multiple args in p_shcf.
50 argv = (char **)alloc((unsigned)((argc + 4) * sizeof(char *)));
51 if (argv == NULL) /* out of memory */
56 if (extra_shell_arg != NULL)
57 argv[argc++] = (char *)extra_shell_arg;
58 ! argv[argc++] = (char *)p_shcf;
59 argv[argc++] = (char *)cmd;
64 if (extra_shell_arg != NULL)
65 argv[argc++] = (char *)extra_shell_arg;
67 ! /* Break 'shellcmdflag' into white separated parts. This doesn't
68 ! * handle quoted strings, they are very unlikely to appear. */
69 ! p_shcf_copy = alloc((unsigned)STRLEN(p_shcf) + 1);
70 ! if (p_shcf_copy == NULL) /* out of memory */
76 ! argv[argc++] = (char *)s;
77 ! while (*p && *p != ' ' && *p != TAB)
83 argv[argc++] = (char *)cmd;
92 + vim_free(p_shcf_copy);
96 *** ../vim-7.3.268/src/version.c 2011-08-04 19:36:47.000000000 +0200
97 --- src/version.c 2011-08-04 20:30:44.000000000 +0200
101 { /* Add new patch number below this line */
107 Be nice to your kids... they'll be the ones choosing your nursing home.
109 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
110 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
111 \\\ an exciting new programming language -- http://www.Zimbu.org ///
112 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///