view src/which.sh @ 10885:310834b0256a v8.0.0332

patch 8.0.0332: GUI test fails on some systems commit https://github.com/vim/vim/commit/4e9dbc74df24dc22d0eeda3741c3fb0e0e7373bf Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 13:44:48 2017 +0100 patch 8.0.0332: GUI test fails on some systems Problem: GUI test fails on some systems. Solution: Try different language settings. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 13:45: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