view src/which.sh @ 14210:1681178c4434 v8.1.0122

patch 8.1.0122: translators don't always understand the maintainer message commit https://github.com/vim/vim/commit/0c183198727b80fd7e52fb29cc1dcd08d79a281c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 14:54:43 2018 +0200 patch 8.1.0122: translators don't always understand the maintainer message Problem: Translators don't always understand the maintainer message. Solution: Add a comment that ends up in the generated po file. (Christian Brabandt, closes #3037)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 15:00:07 +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