view src/which.sh @ 16144:4850744dc181 v8.1.1077

patch 8.1.1077: reg_executing() is reset by calling input() commit https://github.com/vim/vim/commit/9a2c091a748b380efafe60583698c9afcaab1e46 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 14:26:18 2019 +0100 patch 8.1.1077: reg_executing() is reset by calling input() Problem: reg_executing() is reset by calling input(). Solution: Implement a more generic way to save and restore reg_executing. (Ozaki Kiichi, closes #4192)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 14:30:05 +0100
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