view src/which.sh @ 18398:21c25bee9df8 v8.1.2193

patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work Commit: https://github.com/vim/vim/commit/a13961536e5b1e686574826d4ed713e3d5526715 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 18:46:05 2019 +0200 patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work Problem: Popup_setoptions(popup_getoptions()) does not work. Solution: Also accept a list with three entries for "moved" and "mousemoved". (closes #5081)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 19:00:03 +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