To: vim-dev@vim.org Subject: Patch 6.1.375 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.375 Problem: MS-Windows: ':!dir "%"' does not work for a file name with spaces. (Xiangjiang Ma) Solution: Don't insert backslashes for spaces in a shell command. Files: src/ex_docmd.c *** ../vim61.374/src/ex_docmd.c Sat Mar 8 20:33:31 2003 --- src/ex_docmd.c Sat Mar 8 13:59:20 2003 *************** *** 3216,3222 **** * for shell commands (may have to use quotes instead). Don't do this * for non-unix systems when there is a single argument (spaces don't * separate arguments then). */ ! if (!eap->usefilter #ifndef UNIX && !(eap->argt & NOSPC) #endif --- 3227,3233 ---- * for shell commands (may have to use quotes instead). Don't do this * for non-unix systems when there is a single argument (spaces don't * separate arguments then). */ ! if (!eap->usefilter && eap->cmdidx != CMD_bang #ifndef UNIX && !(eap->argt & NOSPC) #endif *** ../vim61.374/src/version.c Sun Mar 9 15:09:09 2003 --- src/version.c Sun Mar 9 15:10:24 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 375, /**/ -- Contrary to popular belief, it's often your clothing that gets promoted, not you. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///