view src/which.sh @ 26583:119924c37d39 v8.2.3821

patch 8.2.3821: ASAN test run fails Commit: https://github.com/vim/vim/commit/19569ca6d805de7a2ac95ee7b0c52475a9d5d851 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 15 21:29:19 2021 +0000 patch 8.2.3821: ASAN test run fails Problem: ASAN test run fails. Solution: Use asan_symbolize-13 instead of asan_symbolize-11.
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 22:30:19 +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