view src/which.sh @ 14117:08b0b6d6cbe7 v8.1.0076

patch 8.1.0076: command getting cleared with CTRL-W : in a terminal window commit https://github.com/vim/vim/commit/0ce7413a8318ec0b01386c54ee09d3d94216cb15 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 18 22:15:50 2018 +0200 patch 8.1.0076: command getting cleared with CTRL-W : in a terminal window Problem: Command getting cleared with CTRL-W : in a terminal window. (Jason Franklin) Solution: Call redraw_after_callback() when editing the command line.
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Jun 2018 22:30: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