view src/which.sh @ 27096:d539c144aeb4 v8.2.4077

patch 8.2.4077: not all Libsensors files are recognized Commit: https://github.com/vim/vim/commit/8d9e470aa91a93da7d6bda62521aef69a79e956d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 14:49:10 2022 +0000 patch 8.2.4077: not all Libsensors files are recognized Problem: Not all Libsensors files are recognized. Solution: Add "sensors.d/*" pattern. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 16: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