view src/which.sh @ 14311:83b870d9ac4b v8.1.0171

patch 8.1.0171: typing CTRL-W n in a terminal window causes ml_get error commit https://github.com/vim/vim/commit/875cf8789426cc258d85358ea2c86744a5a87b16 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 8 20:49:07 2018 +0200 patch 8.1.0171: typing CTRL-W n in a terminal window causes ml_get error Problem: Typing CTRL-W n in a terminal window causes ml_get error. Solution: When resizing the terminal outside of terminal_loop() make sure the snapshot is complete.
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jul 2018 21:00:07 +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