view src/which.sh @ 23090:fb27d3a7a24b v8.2.2091

patch 8.2.2091: MS-Windows: build warnings Commit: https://github.com/vim/vim/commit/29d2f45c8855fd98897c5db92d896c161e95d0f1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 4 19:42:52 2020 +0100 patch 8.2.2091: MS-Windows: build warnings Problem: MS-Windows: build warnings. Solution: Add a #pragma to suppress the deprecation warning. (Ken Takata) Avoid using a non-ASCII character. (closes #7421)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Dec 2020 19:45: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