Mercurial > vim
view src/which.sh @ 9345:96a248eddf5f v7.4.1954
commit https://github.com/vim/vim/commit/d388d2ac8bf8c770bf97dc406e99a20ba5104855
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 26 16:24:20 2016 +0200
patch 7.4.1954
Problem: No test for what 7.4.1948 fixes.
Solution: Add a test. (Hirohito Higashi, closes https://github.com/vim/vim/issues/880)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Jun 2016 16:30:09 +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