view src/which.sh @ 10823:a7da553980ee v8.0.0301

patch 8.0.0301: not enough testing for setting options commit https://github.com/vim/vim/commit/698f8b207bbfefa1cbbd7361caf5412cb3416534 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 4 15:53:32 2017 +0100 patch 8.0.0301: not enough testing for setting options Problem: No tests for ":set completion" and various errors of the :set command. Solution: Add more :set tests. (Dominique Pelle, closes #1440)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Feb 2017 16:00:04 +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