view src/which.sh @ 17115:1c2d05cb4d1d v8.1.1557

patch 8.1.1557: compiler warning for unused variables in tiny version commit https://github.com/vim/vim/commit/983f2f1403a591779f6edc4dd973c6cf31c65c8b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 16:41:41 2019 +0200 patch 8.1.1557: compiler warning for unused variables in tiny version Problem: Compiler warning for unused variables in tiny version. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 16:45:05 +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