view src/which.sh @ 15129:2090f267b311 v8.1.0575

patch 8.1.0575: Termdebug: clearing multi-breakpoint does not work commit https://github.com/vim/vim/commit/37402ed53475166cd988edbea1269fa4e9918dc4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 9 15:53:01 2018 +0100 patch 8.1.0575: Termdebug: clearing multi-breakpoint does not work Problem: Termdebug: clearing multi-breakpoint does not work. Solution: Delete all X.Y breakpoints. Keep more information about placed breakpoints. (Ozaki Kiichi, closes #3641)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Dec 2018 16:00:06 +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