Mercurial > vim
view src/which.sh @ 9620:3539c9e51785 v7.4.2087
commit https://github.com/vim/vim/commit/e25bc5abb4621c6263b0248988a207d53b57fc54
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 21 21:23:38 2016 +0200
patch 7.4.2087
Problem: Digraph code test coverage is still low.
Solution: Add more tests. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Jul 2016 21:30:07 +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