On Tue, May 03, 2022 at 11:03:11AM +0100, Bram Moolenaar wrote: > > Patch 8.2.4860 > Problem: MS-Windows: always uses current directory for executables. > Solution: Check the NoDefaultCurrentDirectoryInExePath environment variable. > (Yasuhiro Matsumoto, closes #10341) > Files: runtime/doc/builtin.txt, src/os_win32.c, > src/testdir/test_functions.vim > > > *** ../vim-8.2.4859/runtime/doc/builtin.txt 2022-04-28 15:26:29.210947840 > +0100 > --- runtime/doc/builtin.txt 2022-05-03 11:00:20.822947244 +0100 > *************** > *** 2013,2020 **** > On MS-Windows it only checks if the file exists and is not a > directory, not if it's really executable. > On MS-Windows an executable in the same directory as Vim is > ! always found. Since this directory is added to $PATH it > ! should also work to execute it |win32-PATH|. > The result is a Number: > 1 exists > 0 does not exist > --- 2016,2025 ---- > On MS-Windows it only checks if the file exists and is not a > directory, not if it's really executable. > On MS-Windows an executable in the same directory as Vim is > ! normally found. Since this directory is added to $PATH it > ! should also work to execute it |win32-PATH|. This can be > ! disabled by setting the $NoDefaultCurrentDirectoryInExePath > ! environment variable. *NoDefaultCurrentDirectoryInExePath*
Shouldn't the default behavior be NOT to add that directory to the path? If a user really wants to add Vim's directory to their path, they already have a means to do that -- their vimrc. Why should Vim be doing it? Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20220504000203.hmjnfht5dow47cct%40localhost.
