Mercurial > vim
view src/which.sh @ 21961:0ce86b015058 v8.2.1530
patch 8.2.1530: Vim9: test fails on MS-Windows
Commit: https://github.com/vim/vim/commit/5163fcce792c9d730bf864f4d9bb07f30625cff9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 27 23:37:09 2020 +0200
patch 8.2.1530: Vim9: test fails on MS-Windows
Problem: Vim9: test fails on MS-Windows.
Solution: Skip Ex command inside "if false".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 27 Aug 2020 23:45:03 +0200 |
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