Mercurial > vim
view src/which.sh @ 23017:d80faed40bec v8.2.2055
patch 8.2.2055: MS-Windows: two Vim instances may use the same temp file
Commit: https://github.com/vim/vim/commit/2472a74be4dedfeaff22314f31cf9787618163d1
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 26 19:47:28 2020 +0100
patch 8.2.2055: MS-Windows: two Vim instances may use the same temp file
Problem: MS-Windows: two Vim instances may use the same temp file.
Solution: Use the process ID for the temp name. (Ken Takata, closes https://github.com/vim/vim/issues/7378)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Nov 2020 20:00:06 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done