view src/which.sh @ 14143:2aec369c4fc3 v8.1.0089

patch 8.1.0089: error when ending the terminal debugger commit https://github.com/vim/vim/commit/a15b0a936d2013e99e9323da9b920a5d93e4fb5a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 19 22:34:46 2018 +0200 patch 8.1.0089: error when ending the terminal debugger Problem: error when ending the terminal debugger Solution: Fix deleting defined signs for breakpoints. Make the debugger work better on MS-Windows.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jun 2018 22:45:05 +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