view src/which.sh @ 13684:1651a4c5c27a v8.0.1714

patch 8.0.1714: term_setsize() does not give an error in a normal buffer commit https://github.com/vim/vim/commit/6e72cd0d7267b9545ef966a53e62706914a96042 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 14 21:31:35 2018 +0200 patch 8.0.1714: term_setsize() does not give an error in a normal buffer Problem: Term_setsize() does not give an error in a normal buffer. Solution: Add an error message.
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Apr 2018 21:45:07 +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