view src/which.sh @ 31237:5bdf73161e65 v9.0.0952

patch 9.0.0952: Eclipse preference files are not recognized Commit: https://github.com/vim/vim/commit/f3f198b6349fe252b72975701e2f17d932b19c70 Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Nov 26 13:03:20 2022 +0000 patch 9.0.0952: Eclipse preference files are not recognized Problem: Eclipse preference files are not recognized. Solution: Add a pattern to use "jproperties" for Eclipse preference files. (closes #11618)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Nov 2022 14:15: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