view src/which.sh @ 27336:9ef98290c41a v8.2.4196

patch 8.2.4196: various file types not recognized Commit: https://github.com/vim/vim/commit/428058ab3213e81531cbd7989f4267870f35d52e Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun Jan 23 17:09:05 2022 +0000 patch 8.2.4196: various file types not recognized Problem: Various file types not recognized. Solution: Add patterns to recognize more file types (closes https://github.com/vim/vim/issues/9607)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 18:15:03 +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