view src/which.sh @ 12134:e83c6c10320c v8.0.0947

patch 8.0.0947: entering terminal using C-O C-W C-W goes to Insert mode commit https://github.com/vim/vim/commit/6fe15bbc87cb996912fe3c2c4068e356071ac516 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 16 21:09:18 2017 +0200 patch 8.0.0947: entering terminal using C-O C-W C-W goes to Insert mode Problem: When in Insert mode and using CTRL-O CTRL-W CTRL-W to move to a termainal window, get in a weird Insert mode. Solution: Don't go to Insert mode in a terminal window. (closes #1977)
author Christian Brabandt <cb@256bit.org>
date Wed, 16 Aug 2017 21:15:04 +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