view src/which.sh @ 13802:378f9f8e6d8f v8.0.1773

patch 8.0.1773: dialog messages are not translated commit https://github.com/vim/vim/commit/c36651b4b946333dce0a916326d821d2562cf39d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 29 12:22:56 2018 +0200 patch 8.0.1773: dialog messages are not translated Problem: Dialog messages are not translated. Solution: Add N_() and _() where needed. (Sergey Alyoshin)
author Christian Brabandt <cb@256bit.org>
date Sun, 29 Apr 2018 12:30:09 +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