view src/which.sh @ 12168:51e5a8602624 v8.0.0964

patch 8.0.0964: channel write buffer does not work with poll() commit https://github.com/vim/vim/commit/683b7967253ecd44476a5a01d857271c0d3ff4f4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 19 15:51:59 2017 +0200 patch 8.0.0964: channel write buffer does not work with poll() Problem: Channel write buffer does not work with poll(). Solution: Use the same mechanism as with select().
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2017 16:00: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