view src/which.sh @ 31039:220215b8a7c9 v9.0.0854

patch 9.0.0854: no proper test for what 9.0.0846 fixes Commit: https://github.com/vim/vim/commit/7265851b2b4e5a63c0a02a9057dee237502ee557 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Nov 10 13:21:34 2022 +0000 patch 9.0.0854: no proper test for what 9.0.0846 fixes Problem: No proper test for what 9.0.0846 fixes. Solution: Run test in a terminal so that the hit-enter prompt can show up. (closes #11523)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Nov 2022 14:30:04 +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