view src/which.sh @ 23871:533d6f1abbcf v8.2.2477

patch 8.2.2477: autocommand tests hang on MS-Windows Commit: https://github.com/vim/vim/commit/dd07c02232e91ee963b91a4477179d4b9548b862 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 13:32:46 2021 +0100 patch 8.2.2477: autocommand tests hang on MS-Windows Problem: Autocommand tests hang on MS-Windows. Solution: Skip a couple of tests. Fix file name.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 13:45: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