To: vim-dev@vim.org Subject: Patch 5.6.044 (extra) Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.044 (extra) Problem: MS-DOS and Windows: The line that dosinst.exe appends to autoexec.bat to set PATH is wrong when Vim is in a directory with an embedded space. Solution: Use double quotes for the value when there is an embedded space. Files: src/dosinst.c *** ../vim-5.6.43/src/dosinst.c Fri Jan 14 22:38:22 2000 --- src/dosinst.c Fri Mar 31 10:53:49 2000 *************** *** 716,722 **** exe = get_choice(exe_choices, TABLE_SIZE(exe_choices)); switch (exe) { ! case 1: append_autoexec("set PATH=%%PATH%%;%s\n", vimdir); need_vimvar = 0; break; --- 716,724 ---- exe = get_choice(exe_choices, TABLE_SIZE(exe_choices)); switch (exe) { ! case 1: /* Must use double quotes for when the vimdir or %PATH% ! * contains a space. */ ! append_autoexec("set PATH=\"%%PATH%%;%s\"\n", vimdir); need_vimvar = 0; break; *************** *** 742,747 **** --- 744,752 ---- else { vimrc[vimdirend - 1] = NUL; + /* Don't use double quotes for the value here, also when vimrc + * contains a space. The quotes would be included in the value + * for MSDOS. */ append_autoexec("set VIM=%s\n", vimrc); } } *** ../vim-5.6.43/src/version.c Thu Mar 30 18:39:21 2000 --- src/version.c Fri Mar 31 10:25:59 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 44, /**/ -- Why isn't there mouse-flavored cat food? /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/