view src/which.sh @ 16342:06f3eb443e93 v8.1.1176

patch 8.1.1176: test for dragging a tab is flaky commit https://github.com/vim/vim/commit/7f27976589f075d591d54f754be257b5f6e6fd92 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 15 21:48:22 2019 +0200 patch 8.1.1176: test for dragging a tab is flaky Problem: Test for dragging a tab is flaky. Solution: Add a brief sleep.
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Apr 2019 22:00:06 +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