view src/which.sh @ 19762:b97112a4e3e4 v8.2.0437

patch 8.2.0437: MS-Windows installer contains old stuff Commit: https://github.com/vim/vim/commit/0df541963d406edd69d3ebe8de3912eb87b05414 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 22:17:11 2020 +0100 patch 8.2.0437: MS-Windows installer contains old stuff Problem: MS-Windows installer contains old stuff. Solution: Rely on Windows NT. (Ken Takata, closes https://github.com/vim/vim/issues/5832)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 22:30:03 +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