view src/which.sh @ 23612:8dbebce07695 v8.2.2348

patch 8.2.2348: no check for modified files after focus gained Commit: https://github.com/vim/vim/commit/fadd55bd633b3b84d41a691e953f569bb6c21689 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 14 19:19:18 2021 +0100 patch 8.2.2348: no check for modified files after focus gained Problem: No check for modified files after focus gained. (Mathias Stearn) Solution: Call ui_focus_change().
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Jan 2021 19:30:04 +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