view src/which.sh @ 13668:6a84e3d2b810 v8.0.1706

patch 8.0.1706: cannot sent CTRL- to a terminal window commit https://github.com/vim/vim/commit/b59118d5012a6a07e2d54504fbb04837b5a1208c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 13 22:11:56 2018 +0200 patch 8.0.1706: cannot sent CTRL-\ to a terminal window Problem: Cannot sent CTRL-\ to a terminal window. Solution: Make CTRL-W CTRL-\ send CTRL-\ to a terminal window.
author Christian Brabandt <cb@256bit.org>
date Fri, 13 Apr 2018 22:15:14 +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