view src/which.sh @ 21431:8e19c509a4bf v8.2.1266

patch 8.2.1266: Makefile preference were accidentally included Commit: https://github.com/vim/vim/commit/bc6fcbe4ce52bc48c3d77b24086acc61ed3333bc Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 21 22:34:41 2020 +0200 patch 8.2.1266: Makefile preference were accidentally included Problem: Makefile preference were accidentally included. Solution: Revert the Makefile changes.
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Jul 2020 22:45:03 +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