view src/which.sh @ 18239:9e696b8fee7d v8.1.2114

patch 8.1.2114: when a popup is closed with CTRL-C the callback aborts Commit: https://github.com/vim/vim/commit/fd00c042afc40539447e798aadbd0a2219fdbdc1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 5 11:56:54 2019 +0200 patch 8.1.2114: when a popup is closed with CTRL-C the callback aborts Problem: When a popup is closed with CTRL-C the callback aborts. Solution: Reset got_int when invoking the callback. (closes https://github.com/vim/vim/issues/5008)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Oct 2019 12:00:04 +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