view src/which.sh @ 16089:4411c38f3d16 v8.1.1049

patch 8.1.1049: when user tries to exit with CTRL-C message is confusing commit https://github.com/vim/vim/commit/a84a3dd6635fcd2e07f510cba6a999585dcc381a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 25 22:21:24 2019 +0100 patch 8.1.1049: when user tries to exit with CTRL-C message is confusing Problem: When user tries to exit with CTRL-C message is confusing. Solution: Only mention ":qa!" when there is a changed buffer. (closes https://github.com/vim/vim/issues/4163)
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Mar 2019 22:30:05 +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