view src/which.sh @ 22820:d05319bbf63b v8.2.1958

patch 8.2.1958: build failure with timers Commit: https://github.com/vim/vim/commit/b885b435d126d34475714e39ec1125bd4e1c77c6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 5 19:34:41 2020 +0100 patch 8.2.1958: build failure with timers Problem: Build failure with timers. Solution: Add missing change.
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 Nov 2020 19:45:03 +0100
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