view src/which.sh @ 28089:d3adf7b141a9 v8.2.4569

patch 8.2.4569: Coverity warning for not using a return value Commit: https://github.com/vim/vim/commit/977525fea662b7f37ad0e052894c1f62b5b03269 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 10:22:39 2022 +0000 patch 8.2.4569: Coverity warning for not using a return value Problem: Coverity warning for not using a return value. Solution: Add "(void)".
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 11:30: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