view src/which.sh @ 30813:f4956427ee9e v9.0.0741

patch 9.0.0741: cannot specify an ID for each item with prop_add_list() Commit: https://github.com/vim/vim/commit/d93009eb35c88bfc38781fefdf42ebdb02c61474 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 13 14:35:24 2022 +0100 patch 9.0.0741: cannot specify an ID for each item with prop_add_list() Problem: Cannot specify an ID for each item with prop_add_list(). (Sergey Vlasov) Solution: Add an optional fifth number to the item. (closes #11360)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Oct 2022 15:45: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