view src/which.sh @ 20452:bf530e4e910a v8.2.0780

patch 8.2.0780: libvterm code lags behind the upstream version Commit: https://github.com/vim/vim/commit/2d2970ea599e83acabee56be548a54a8e6b21007 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 17 16:29:47 2020 +0200 patch 8.2.0780: libvterm code lags behind the upstream version Problem: Libvterm code lags behind the upstream version. Solution: Include revisions 724 - 726.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 May 2020 16:30:04 +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