view src/which.sh @ 20548:6564dafe5005 v8.2.0828

patch 8.2.0828: Travis: regexp patttern doesn't work everywhere Commit: https://github.com/vim/vim/commit/92c098d18e435a7a762409744ebe2dbb3746ed77 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 26 20:09:11 2020 +0200 patch 8.2.0828: Travis: regexp patttern doesn't work everywhere Problem: Travis: regexp patttern doesn't work everywhere. Solution: Use [:blank:] instead of \b. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/6146)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 May 2020 20:15:04 +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