view src/which.sh @ 15926:ca0a0b64809c v8.1.0969

patch 8.1.0969: message written during startup is truncated commit https://github.com/vim/vim/commit/97c2c05ead689f4a5de986c82531fcbd09295cda Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 22 13:42:07 2019 +0100 patch 8.1.0969: message written during startup is truncated Problem: Message written during startup is truncated. Solution: Restore message after truncating. (closes 3969)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Feb 2019 13:45:06 +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