view src/which.sh @ 18303:86887d3fd6f7 v8.1.2146

patch 8.1.2146: build failure Commit: https://github.com/vim/vim/commit/1e7b52ad8a5e34b9e7a2d12a09765d76d446cd5a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 13 16:59:08 2019 +0200 patch 8.1.2146: build failure Problem: Build failure. Solution: Include omitted changed file.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Oct 2019 17:00: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