view src/which.sh @ 29857:a0a446bc3aea v9.0.0267

patch 9.0.0267: Coverity workflow still uses Ubuntu 18.04 Commit: https://github.com/vim/vim/commit/930830a68b6eb7ca630956330b48996e3ef8518f Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Thu Aug 25 16:24:56 2022 +0100 patch 9.0.0267: Coverity workflow still uses Ubuntu 18.04 Problem: Coverity workflow still uses Ubuntu 18.04. Solution: Use Ubuntu 20.04
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Aug 2022 17:30:05 +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