Mercurial > vim
view src/which.sh @ 15689:977a05589b65 v8.1.0852
patch 8.1.0852: findfile() and finddir() are not properly tested
commit https://github.com/vim/vim/commit/ed71ed37bcd44bcbfcf59beee1248799de3315ec
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 30 22:13:35 2019 +0100
patch 8.1.0852: findfile() and finddir() are not properly tested
Problem: findfile() and finddir() are not properly tested.
Solution: Extend the test and add more. (Dominique Pelle, closes https://github.com/vim/vim/issues/3880)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Jan 2019 22:15:07 +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