view src/which.sh @ 15794:0d8291665b59 v8.1.0904

patch 8.1.0904: USE_LONG_FNAME never defined commit https://github.com/vim/vim/commit/00f148d2f24fb955ab36b0833811582c58b2cf2f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 12 22:37:27 2019 +0100 patch 8.1.0904: USE_LONG_FNAME never defined Problem: USE_LONG_FNAME never defined. Solution: Remove using USE_LONG_FNAME. (Ken Takata, closes https://github.com/vim/vim/issues/3938)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Feb 2019 22:45:06 +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