Karsten Hopp 7e0b75
To: vim_dev@googlegroups.com
Karsten Hopp 7e0b75
Subject: Patch 7.3.450
Karsten Hopp 7e0b75
Fcc: outbox
Karsten Hopp 7e0b75
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7e0b75
Mime-Version: 1.0
Karsten Hopp 7e0b75
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 7e0b75
Content-Transfer-Encoding: 8bit
Karsten Hopp 7e0b75
------------
Karsten Hopp 7e0b75
Karsten Hopp 7e0b75
Patch 7.3.450 (after 7.3.448)
Karsten Hopp 7e0b75
Problem:    Win32: Still a problem with "!start /b".
Karsten Hopp 7e0b75
Solution:   Fix pointer use. (Yasuhiro Matsumoto)
Karsten Hopp 7e0b75
Files:	    src/os_win32.c
Karsten Hopp 7e0b75
Karsten Hopp 7e0b75
Karsten Hopp 7e0b75
*** ../vim-7.3.449/src/os_win32.c	2012-02-22 13:07:02.000000000 +0100
Karsten Hopp 7e0b75
--- src/os_win32.c	2012-02-22 15:29:56.000000000 +0100
Karsten Hopp 7e0b75
***************
Karsten Hopp 7e0b75
*** 4008,4028 ****
Karsten Hopp 7e0b75
  	    if (flags != CREATE_NEW_CONSOLE)
Karsten Hopp 7e0b75
  	    {
Karsten Hopp 7e0b75
  		char_u	*subcmd;
Karsten Hopp 7e0b75
! 		char_u	*cmd_shell = default_shell();
Karsten Hopp 7e0b75
  
Karsten Hopp 7e0b75
  		subcmd = vim_strsave_escaped_ext(cmdbase, "|", '^', FALSE);
Karsten Hopp 7e0b75
  		if (subcmd != NULL)
Karsten Hopp 7e0b75
  		{
Karsten Hopp 7e0b75
  		    /* make "cmd.exe /c arguments" */
Karsten Hopp 7e0b75
  		    cmdlen = STRLEN(cmd_shell) + STRLEN(subcmd) + 5;
Karsten Hopp 7e0b75
- 		    vim_free(subcmd);
Karsten Hopp 7e0b75
- 
Karsten Hopp 7e0b75
  		    newcmd = lalloc(cmdlen, TRUE);
Karsten Hopp 7e0b75
  		    if (newcmd != NULL)
Karsten Hopp 7e0b75
  			vim_snprintf((char *)newcmd, cmdlen, "%s /c %s",
Karsten Hopp 7e0b75
! 						       default_shell, subcmd);
Karsten Hopp 7e0b75
  		    else
Karsten Hopp 7e0b75
  			newcmd = cmdbase;
Karsten Hopp 7e0b75
  		}
Karsten Hopp 7e0b75
  	    }
Karsten Hopp 7e0b75
  
Karsten Hopp 7e0b75
--- 4008,4030 ----
Karsten Hopp 7e0b75
  	    if (flags != CREATE_NEW_CONSOLE)
Karsten Hopp 7e0b75
  	    {
Karsten Hopp 7e0b75
  		char_u	*subcmd;
Karsten Hopp 7e0b75
! 		char_u	*cmd_shell = mch_getenv("COMSPEC");
Karsten Hopp 7e0b75
! 
Karsten Hopp 7e0b75
! 		if (cmd_shell == NULL || *cmd_shell == NUL)
Karsten Hopp 7e0b75
! 		    cmd_shell = default_shell();
Karsten Hopp 7e0b75
  
Karsten Hopp 7e0b75
  		subcmd = vim_strsave_escaped_ext(cmdbase, "|", '^', FALSE);
Karsten Hopp 7e0b75
  		if (subcmd != NULL)
Karsten Hopp 7e0b75
  		{
Karsten Hopp 7e0b75
  		    /* make "cmd.exe /c arguments" */
Karsten Hopp 7e0b75
  		    cmdlen = STRLEN(cmd_shell) + STRLEN(subcmd) + 5;
Karsten Hopp 7e0b75
  		    newcmd = lalloc(cmdlen, TRUE);
Karsten Hopp 7e0b75
  		    if (newcmd != NULL)
Karsten Hopp 7e0b75
  			vim_snprintf((char *)newcmd, cmdlen, "%s /c %s",
Karsten Hopp 7e0b75
! 						       cmd_shell, subcmd);
Karsten Hopp 7e0b75
  		    else
Karsten Hopp 7e0b75
  			newcmd = cmdbase;
Karsten Hopp 7e0b75
+ 		    vim_free(subcmd);
Karsten Hopp 7e0b75
  		}
Karsten Hopp 7e0b75
  	    }
Karsten Hopp 7e0b75
  
Karsten Hopp 7e0b75
*** ../vim-7.3.449/src/version.c	2012-02-22 14:58:24.000000000 +0100
Karsten Hopp 7e0b75
--- src/version.c	2012-02-22 15:33:53.000000000 +0100
Karsten Hopp 7e0b75
***************
Karsten Hopp 7e0b75
*** 716,717 ****
Karsten Hopp 7e0b75
--- 716,719 ----
Karsten Hopp 7e0b75
  {   /* Add new patch number below this line */
Karsten Hopp 7e0b75
+ /**/
Karsten Hopp 7e0b75
+     450,
Karsten Hopp 7e0b75
  /**/
Karsten Hopp 7e0b75
Karsten Hopp 7e0b75
-- 
Karsten Hopp 7e0b75
You are only young once, but you can stay immature indefinitely.
Karsten Hopp 7e0b75
Karsten Hopp 7e0b75
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7e0b75
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7e0b75
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 7e0b75
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///