view src/which.sh @ 29477:6387e75a4a6b v9.0.0080

patch 9.0.0080: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/0494789ecee9e2a973f48426f7a69fb96378fa8a Author: Mike Williams <mikew@globalgraphics.com> Date: Tue Jul 26 16:03:42 2022 +0100 patch 9.0.0080: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add type casts. (Mike Williams, closes https://github.com/vim/vim/issues/10795)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 17:15:03 +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