view src/which.sh @ 16525:1bf49cd87e6b v8.1.1266

patch 8.1.1266: winbar test doesn't test enough commit https://github.com/vim/vim/commit/8caef443b2a71b937061399a216bcfa854aed33d Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 4 17:30:04 2019 +0200 patch 8.1.1266: winbar test doesn't test enough Problem: Winbar test doesn't test enough. Solution: Check that the WinBar actually shows up. Correct check for clicks with no effect. (Ben Jackson, closes #4338)
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 May 2019 17:45: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