view src/which.sh @ 27006:686fa1164724 v8.2.4032

patch 8.2.4032: ATTRIBUTE_NORETURN is not needed Commit: https://github.com/vim/vim/commit/e12406526a24768e6121450112eb2f9f92445ac5 Author: ichizok <gclient.gaap@gmail.com> Date: Fri Jan 7 20:01:07 2022 +0000 patch 8.2.4032: ATTRIBUTE_NORETURN is not needed Problem: ATTRIBUTE_NORETURN is not needed. Solution: Use NORETURN(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9487)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jan 2022 21:15: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