view src/which.sh @ 18697:c035b4fa4bc5 v8.1.2340

patch 8.1.2340: quickfix test fails under valgrind and asan Commit: https://github.com/vim/vim/commit/a106e6cde682bda4ad10ed745acb51975fcb02e0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 24 22:13:58 2019 +0100 patch 8.1.2340: quickfix test fails under valgrind and asan Problem: Quickfix test fails under valgrind and asan. Solution: Make sure long line does not overflow IObuff. (Dominique Pelle, closes #5263) Put back fix for large terminals. (Yegappan Lakshmanan, closes #5264)
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Nov 2019 22:15:03 +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