view src/which.sh @ 33458:f4c83cd2132c

runtime(netrw): error when trying to :bd unloaded buffer Commit: https://github.com/vim/vim/commit/4dbb2669e9ed9ec6864705dcb569715e417e1303 Author: yasuda <yasuda@kyoto-sr.co.jp> Date: Wed Oct 4 20:50:35 2023 +0200 runtime(netrw): error when trying to :bd unloaded buffer closes: https://github.com/vim/vim/issues/13215 closes: https://github.com/vim/vim/issues/13082 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 04 Oct 2023 21:00:03 +0200
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