view src/which.sh @ 16976:7160dcd5c1d2 v8.1.1488

patch 8.1.1488: summary of tests has incorrect failed count commit https://github.com/vim/vim/commit/150f0550f45b836200a189e4d34417f4d3467455 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 7 21:29:50 2019 +0200 patch 8.1.1488: summary of tests has incorrect failed count Problem: Summary of tests has incorrect failed count. Solution: Add to the failed count instead of setting it. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jun 2019 21:30:05 +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