view src/which.sh @ 15677:772e72b046a3 v8.1.0846

patch 8.1.0846: not easy to recognize the system Vim runs on commit https://github.com/vim/vim/commit/39536dd557e847e80572044c2be319db5886abe3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 29 22:58:21 2019 +0100 patch 8.1.0846: not easy to recognize the system Vim runs on Problem: Not easy to recognize the system Vim runs on. Solution: Add more items to the features list. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3855)
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Jan 2019 23:00:16 +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