view src/which.sh @ 15549:9bd2372432cf v8.1.0782

patch 8.1.0782: Win32: cursor blinks when Vim is not active commit https://github.com/vim/vim/commit/2d951a486e632f99fe039c0b0a1685f1fe7879b2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 19 19:54:20 2019 +0100 patch 8.1.0782: Win32: cursor blinks when Vim is not active Problem: Win32: cursor blinks when Vim is not active. Solution: Remove call to setActiveWindow(). (Yasuhiro Matsumoto, closes #3778)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Jan 2019 20:00:09 +0100
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