view src/which.sh @ 19505:e7eec9cae0ea v8.2.0310

patch 8.2.0310: autocmd test fails on a slow system Commit: https://github.com/vim/vim/commit/8fb1b47a5e24892b23c3923a07d8a850d99b14b2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 23 16:16:26 2020 +0100 patch 8.2.0310: autocmd test fails on a slow system Problem: Autocmd test fails on a slow system. Solution: Adjust the expectations. (James McCoy, closes https://github.com/vim/vim/issues/5685)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Feb 2020 16:30:04 +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