view src/which.sh @ 26476:7426c2657710 v8.2.3768

patch 8.2.3768: timer_info() has the wrong repeat value in a timer callback Commit: https://github.com/vim/vim/commit/95b2dd0c008f0977ebb3cbe233a5064001a332e1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 9 18:42:57 2021 +0000 patch 8.2.3768: timer_info() has the wrong repeat value in a timer callback Problem: timer_info() has the wrong repeat value in a timer callback. Solution: Do not add one to the repeat value when in the callback. (closes #9294)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Dec 2021 19:45: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