view src/which.sh @ 16957:1266ca221df8 v8.1.1479

patch 8.1.1479: change included for debugging only commit https://github.com/vim/vim/commit/133c737357ceff21348d55c7d53903421c5ce094 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 6 14:38:06 2019 +0200 patch 8.1.1479: change included for debugging only Problem: Change included for debugging only. Solution: Restore the REDIR_TEST_TO_NULL line.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jun 2019 14:45:04 +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