view src/which.sh @ 15703:b8a2362073bb v8.1.0859

patch 8.1.0859: "%v" in 'errorformat' does handle multi-byte characters commit https://github.com/vim/vim/commit/c45eb770a5988734ff2c572e5e2ce307158c33c8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 14:27:04 2019 +0100 patch 8.1.0859: "%v" in 'errorformat' does handle multi-byte characters Problem: "%v" in 'errorformat' does handle multi-byte characters. Solution: Handle multi-byte characters. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3700)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 14:30:07 +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