view src/which.sh @ 16209:4a1b411b1cfa v8.1.1109

patch 8.1.1109: deleted file still in list of distributed files commit https://github.com/vim/vim/commit/39b76b7df851608fe4d7179269d3c6736db30733 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 4 13:12:07 2019 +0200 patch 8.1.1109: deleted file still in list of distributed files Problem: Deleted file still in list of distributed files. Solution: Remove the src/os_w32dll.c entry.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Apr 2019 13:15:08 +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