view src/which.sh @ 28115:62a57c60edc1 v8.2.4582

patch 8.2.4582: useless code handling a type declaration Commit: https://github.com/vim/vim/commit/4c8b546da2059865e20902586bb3e0ff07c279a0 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 16 20:01:39 2022 +0000 patch 8.2.4582: useless code handling a type declaration Problem: Useless code handling a type declaration. Solution: Remove the code and give an error.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Mar 2022 21:15:02 +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