view src/which.sh @ 16425:e263ace0c9d0 v8.1.1217

patch 8.1.1217: MS-Windows: no space reserved for font quality name commit https://github.com/vim/vim/commit/2155a6abaa5d065ad7b580229321860591126f2e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 19:15:45 2019 +0200 patch 8.1.1217: MS-Windows: no space reserved for font quality name Problem: MS-Windows: no space reserved for font quality name. Solution: Add quality_name length if present. (Ken Takata, closes https://github.com/vim/vim/issues/4311)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 19:30:04 +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