view src/which.sh @ 18108:76126690dd92 v8.1.2049

patch 8.1.2049: cannot build tiny version Commit: https://github.com/vim/vim/commit/397c6a1438186adef54fe5113690307e644b0f42 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 17 20:54:31 2019 +0200 patch 8.1.2049: cannot build tiny version Problem: Cannot build tiny version. Solution: Add #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Sep 2019 21:00: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