view src/which.sh @ 33795:4af3b4cd8d2e v9.0.2116

patch 9.0.2116: No test for defining sign without attribute Commit: https://github.com/vim/vim/commit/e670d17342ea05af253b0452afb980397fa143be Author: Luuk van Baal <luukvbaal@gmail.com> Date: Sun Nov 19 10:55:35 2023 +0100 patch 9.0.2116: No test for defining sign without attribute Problem: No test for defining sign without attribute Solution: Add test for defining sign without attributes closes: #13544 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Nov 2023 11:00:10 +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