view src/which.sh @ 28405:473cfd79bcd8 v8.2.4727

patch 8.2.4727: unused code Commit: https://github.com/vim/vim/commit/7765f5cf964c751cd780484220bb65773b1b0348 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Apr 10 11:26:53 2022 +0100 patch 8.2.4727: unused code Problem: Unused code. Solution: Remove code and add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/10136)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Apr 2022 12:30:05 +0200
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