view src/which.sh @ 21291:c6fc976a8741 v8.2.1196

patch 8.2.1196: build failure with normal features Commit: https://github.com/vim/vim/commit/83e7450053399942e1c9efa802c568b51d948541 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 12 20:44:37 2020 +0200 patch 8.2.1196: build failure with normal features Problem: Build failure with normal features. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Jul 2020 20:45: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