view src/which.sh @ 24924:0d411646a366 v8.2.2999

patch 8.2.2999: balloon sometimes does not hide with GTK 3 Commit: https://github.com/vim/vim/commit/47f6db90895c01259e90108caae9517e894e1f95 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 14 22:08:46 2021 +0200 patch 8.2.2999: balloon sometimes does not hide with GTK 3 Problem: Balloon sometimes does not hide with GTK 3. Solution: Also listen to GDK_LEAVE_NOTIFY. (Johannes Stezenbach)
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Jun 2021 22:15:02 +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