view src/which.sh @ 17702:ba18f78c8529 v8.1.1848

patch 8.1.1848: 'langmap' is not used for CTRL-W command in terminal commit https://github.com/vim/vim/commit/a4b2699e28a30dcc4d1696b317f24a8904ec2a06 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 15 20:58:54 2019 +0200 patch 8.1.1848: 'langmap' is not used for CTRL-W command in terminal Problem: 'langmap' is not used for CTRL-W command in terminal. Solution: Push the command in the typeahead buffer instead of the stuff buffer. (closes #4814)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Aug 2019 21:00: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