view src/which.sh @ 19352:c617ba6413bb v8.2.0234

patch 8.2.0234: message test fails on SunOS Commit: https://github.com/vim/vim/commit/d5b991493816a2edba7cacdd06820cf3c0abc4dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 17:14:46 2020 +0100 patch 8.2.0234: message test fails on SunOS Problem: Message test fails on SunOS. Solution: Adjust expectation for printf "%p". (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5595)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 17:15:04 +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