view src/which.sh @ 31006:d63bb3fa9939 v9.0.0838

patch 9.0.0838: compiler warnings for unused variables Commit: https://github.com/vim/vim/commit/a25f718431ae001242a6a8b74733ee7685ccf07d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 6 11:27:46 2022 +0000 patch 9.0.0838: compiler warnings for unused variables Problem: Compiler warnings for unused variables. Solution: Addjust #ifdef and remove unused variables. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Nov 2022 12:30:05 +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