view src/which.sh @ 23584:397f95f103e8 v8.2.2334

patch 8.2.2334: Pascal-like filetypes not always detected Commit: https://github.com/vim/vim/commit/a0122dcd1cc9e9bb62c071a9b91426a8bce4f8d9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 12 17:42:24 2021 +0100 patch 8.2.2334: Pascal-like filetypes not always detected Problem: Pascal-like filetypes not always detected. Solution: Improved Puppet, InstantFPC and Pascal detection. (Doug Kearns, closes #7662)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jan 2021 17:45:04 +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