view src/which.sh @ 21200:37edecbfb834 v8.2.1151

patch 8.2.1151: insufficient test coverage for Python Commit: https://github.com/vim/vim/commit/0ab55d62012c1fb38c4b540a4233421820a59389 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 7 20:50:39 2020 +0200 patch 8.2.1151: insufficient test coverage for Python Problem: Insufficient test coverage for Python. Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6415)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 Jul 2020 21:00:04 +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