view src/which.sh @ 30152:1e6d387bd51f v9.0.0412

patch 9.0.0412: compiler warning for unused argument Commit: https://github.com/vim/vim/commit/e5a420fb33518e08313f653f3031bc36f949e086 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 7 21:46:56 2022 +0100 patch 9.0.0412: compiler warning for unused argument Problem: Compiler warning for unused argument. Solution: Add UNUSED.
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Sep 2022 23:00:06 +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