view src/which.sh @ 22754:837756417c5e v8.2.1925

patch 8.2.1925: list/dict test fails Commit: https://github.com/vim/vim/commit/6d967125ad87b1c2a9467357286c3514d5dd1c40 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 30 19:06:18 2020 +0100 patch 8.2.1925: list/dict test fails Problem: List/dict test fails. Solution: Correct expected exception.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Oct 2020 19:15: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