view src/which.sh @ 27613:42d0279c6e7c v8.2.4333

patch 8.2.4333: cstack not always passed to where it is needed Commit: https://github.com/vim/vim/commit/b6a138eb334621f60c5891d035f80f398d59dbd3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 8 21:17:22 2022 +0000 patch 8.2.4333: cstack not always passed to where it is needed Problem: cstack not always passed to where it is needed. Solution: Pass ctack through functions.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Feb 2022 22:30: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