view src/which.sh @ 14341:3224a9aebc46 v8.1.0186

patch 8.1.0186: test for getwininfo() fails in GUI commit https://github.com/vim/vim/commit/44a693a1bdfe987edb649677c94c214f94b2aada Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 14 22:23:47 2018 +0200 patch 8.1.0186: test for getwininfo() fails in GUI Problem: Test for getwininfo() fails in GUI. Solution: Account for missing tabline.
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Jul 2018 22:30:05 +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