view src/which.sh @ 16007:6d869997a8b7 v8.1.1009

patch 8.1.1009: MS-Windows: some text is not baseline aligned commit https://github.com/vim/vim/commit/1f271efbbb2004c3e1b90492a3585a6d9ebd7893 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 16 15:24:42 2019 +0100 patch 8.1.1009: MS-Windows: some text is not baseline aligned Problem: MS-Windows: some text is not baseline aligned. Solution: Use bottom alignment. (Taro Muraoka, closes https://github.com/vim/vim/issues/4116, closes https://github.com/vim/vim/issues/1520)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Mar 2019 15:30:06 +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