view src/which.sh @ 17514:984cc7258468 v8.1.1755

patch 8.1.1755: leaking memory when using a popup window mask commit https://github.com/vim/vim/commit/0aca293fedfd22d489297f7cbce6a7de86748151 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 26 22:22:38 2019 +0200 patch 8.1.1755: leaking memory when using a popup window mask Problem: Leaking memory when using a popup window mask. Solution: Free the cached mask.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Jul 2019 22:30:09 +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