view src/which.sh @ 28710:54e33757d1ec v8.2.4879

patch 8.2.4879: screendump test may fail when using valgrind Commit: https://github.com/vim/vim/commit/3e79427803927be42409e9e50c0a308526b83656 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 6 11:21:19 2022 +0100 patch 8.2.4879: screendump test may fail when using valgrind Problem: Screendump test may fail when using valgrind. Solution: Wait longer for the first screendump.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 May 2022 12:30:03 +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