view src/which.sh @ 14163:99a96be12254 v8.1.0099

patch 8.1.0099: exclamation mark in error message not needed commit https://github.com/vim/vim/commit/3c867daaf09e8ac6ce4b9d43d6fbbfdd7689702d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 23 14:34:28 2018 +0200 patch 8.1.0099: exclamation mark in error message not needed Problem: Exclamation mark in error message not needed. Solution: Remove the exclamation mark.
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jun 2018 14:45:05 +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