view src/which.sh @ 24735:e5beb841778d v8.2.2906

patch 8.2.2906: ASAN reports errors for test_startup Commit: https://github.com/vim/vim/commit/a5787c3742b43a8e662045a4e38c7a6ba957acbf Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 29 22:25:17 2021 +0200 patch 8.2.2906: ASAN reports errors for test_startup Problem: ASAN reports errors for test_startup for unknown reasons. Solution: Temporarily disable the new test.
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 May 2021 22:30: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