view src/which.sh @ 11044:eb3a2ff3309a v8.0.0411

patch 8.0.0411: menu translations don't match when case is changed. commit https://github.com/vim/vim/commit/11dd8c1201033dd74e2ea665ba277425b4b965b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 4 20:41:34 2017 +0100 patch 8.0.0411: menu translations don't match when case is changed. Problem: We can't change the case in menu entries, it breaks translations. Solution: Ignore case when looking up a menu translation.
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Mar 2017 20:45:05 +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