view src/which.sh @ 13008:e775011b4c1e v8.0.1380

patch 8.0.1380: using "vim -r swapfile" the hit-enter prompt is misplaced. commit https://github.com/vim/vim/commit/05684310a53c8a4804441c1c6f8b7fc9e8194940 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 9 15:11:24 2017 +0100 patch 8.0.1380: using "vim -r swapfile" the hit-enter prompt is misplaced. Problem: When recovering a file with "vim -r swapfile" the hit-enter prompt is at the top of the window. Solution: Invalidate the cursor position.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Dec 2017 15:15: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