view src/which.sh @ 22834:fcbded1e3602 v8.2.1964

patch 8.2.1964: not all ConTeXt files are recognized Commit: https://github.com/vim/vim/commit/faebda8cc1ecc4d6a197e06e968df46a2841ed79 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 6 18:52:55 2020 +0100 patch 8.2.1964: not all ConTeXt files are recognized Problem: Not all ConTeXt files are recognized. Solution: Add two patterns. (closes https://github.com/vim/vim/issues/7263)
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Nov 2020 19:00: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