view src/which.sh @ 13780:5cf4a504bcc0 v8.0.1762

patch 8.0.1762: terminal debug logging is a bit complicated commit https://github.com/vim/vim/commit/b255b90503a986931904c23dafb5b6d4e512a17e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 24 21:40:10 2018 +0200 patch 8.0.1762: terminal debug logging is a bit complicated Problem: Terminal debug logging is a bit complicated. Solution: Make log_tr() use variable arguments (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2730)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Apr 2018 21:45:08 +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