view src/which.sh @ 20235:ee5c653b946f v8.2.0673

patch 8.2.0673: cannot build Haiku in shadow directory Commit: https://github.com/vim/vim/commit/4cfde1d273ec5fca68a983805af48ea37d3d94e5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 1 14:14:07 2020 +0200 patch 8.2.0673: cannot build Haiku in shadow directory Problem: Cannot build Haiku in shadow directory. Solution: Add symlink. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/6023)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 May 2020 14:15:05 +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