view src/which.sh @ 27901:dd7d94b911fa v8.2.4476

patch 8.2.4476: operator name spelled wrong Commit: https://github.com/vim/vim/commit/e41c1dd8890d3f701253255993f4e9af2d12225c Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sat Feb 26 11:46:13 2022 +0000 patch 8.2.4476: operator name spelled wrong Problem: Operator name spelled wrong. Solution: Change trinary to ternary. (Goc Dundar, closes https://github.com/vim/vim/issues/9850)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Feb 2022 13:00: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