view src/which.sh @ 14798:487f3bd87594 v8.1.0411

patch 8.1.0411: renamed file missing from distribution commit https://github.com/vim/vim/commit/cec12cd661bd4b2e02a65879c08020448ee345cd Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 19 22:00:30 2018 +0200 patch 8.1.0411: renamed file missing from distribution Problem: Renamed file missing from distribution. Solution: Rename screen.c to termscreen.c (Zdenek Dohnal, closes https://github.com/vim/vim/issues/3449)
author Christian Brabandt <cb@256bit.org>
date Wed, 19 Sep 2018 22:15:05 +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