view src/which.sh @ 11802:b1fd49b4eea7 v8.0.0783

patch 8.0.0783: job of terminal may be freed too early commit https://github.com/vim/vim/commit/0e83f02d80acacee55c5de3bbbee52625d368375 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 27 22:07:35 2017 +0200 patch 8.0.0783: job of terminal may be freed too early Problem: Job of terminal may be freed too early. Solution: Increment job refcount. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Thu, 27 Jul 2017 22:15: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