view src/which.sh @ 15320:de8dc397cd2a v8.1.0668

patch 8.1.0668: no test for overstrike mode in the command line commit https://github.com/vim/vim/commit/c0676bab92bd6488e17d05a4a70dfff993ef524e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 31 21:03:02 2018 +0100 patch 8.1.0668: no test for overstrike mode in the command line Problem: No test for overstrike mode in the command line. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/3742)
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 Dec 2018 21:15: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