view src/which.sh @ 19591:ac3f5096f438 v8.2.0352

patch 8.2.0352: FreeBSD: test for sourcing utf-8 is skipped Commit: https://github.com/vim/vim/commit/36ddf9383181f93b080eb26121bdff37e394d2db Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 3 23:06:48 2020 +0100 patch 8.2.0352: FreeBSD: test for sourcing utf-8 is skipped Problem: FreeBSD: test for sourcing utf-8 is skipped. Solution: Run the matchadd_conceal test separately to avoid that setting 'term' to "ansi" causes problems for other tests. (Ozaki Kiichi, closes #5721)
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 Mar 2020 23: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