view src/which.sh @ 14603:d1b69129db99 v8.1.0315

patch 8.1.0315: helpgrep with language doesn't work properly commit https://github.com/vim/vim/commit/c631f2df624954184509df49479d52ad7fe5233b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 21 21:58:13 2018 +0200 patch 8.1.0315: helpgrep with language doesn't work properly Problem: Helpgrep with language doesn't work properly. (Takuya Fujiwara) Solution: Check for the language earlier. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Aug 2018 22:00:05 +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