view src/which.sh @ 21885:72525eabfe61 v8.2.1492

patch 8.2.1492: build failures Commit: https://github.com/vim/vim/commit/20b23c6358131baefb57b9083387fb4524d3ff24 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 20 15:25:00 2020 +0200 patch 8.2.1492: build failures Problem: Build failures. Solution: Move typedef out of #ifdef. Adjust argument types. Discover America.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Aug 2020 15:30:03 +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