view src/which.sh @ 18516:9676dc5fd705 v8.1.2252

patch 8.1.2252: compiler warning for int size Commit: https://github.com/vim/vim/commit/2ade714728ff824f67a9a24ef495d509a389ee2f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 4 20:36:50 2019 +0100 patch 8.1.2252: compiler warning for int size Problem: Compiler warning for int size. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Nov 2019 20:45:04 +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