view src/which.sh @ 16243:3b79a3029947 v8.1.1126

patch 8.1.1126: build failure with +terminal but without tgetent commit https://github.com/vim/vim/commit/3d3f21764a8003b90216ae6fb988af1dae5f5d70 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 6 17:56:05 2019 +0200 patch 8.1.1126: build failure with +terminal but without tgetent Problem: Build failure with +terminal but without tgetent. Solution: Adjust #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Apr 2019 18:00:06 +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