view src/which.sh @ 19956:ea0ff06dccba v8.2.0534

patch 8.2.0534: client-server test fails under valgrind Commit: https://github.com/vim/vim/commit/25d57009520f0e590920b9f953b1cbbb358e72a2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 8 22:56:34 2020 +0200 patch 8.2.0534: client-server test fails under valgrind Problem: Client-server test fails under valgrind. Solution: Use WaitForAssert().
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Apr 2020 23:00: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