view src/which.sh @ 20134:352701a626ed v8.2.0622

patch 8.2.0622: Haiku: GUI does not compile Commit: https://github.com/vim/vim/commit/beae4084fd34c56d43787be73588070ddc474251 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 23 15:41:49 2020 +0200 patch 8.2.0622: Haiku: GUI does not compile Problem: Haiku: GUI does not compile. Solution: Various fixes. (Emir Sari, closes https://github.com/vim/vim/issues/5961)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Apr 2020 16:15: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