view src/which.sh @ 22566:12b4e321a625 v8.2.1831

patch 8.2.1831: file missing from distribution Commit: https://github.com/vim/vim/commit/ef16c90423ae579927e6294c1ccfd17c5a1c113c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 11 14:22:22 2020 +0200 patch 8.2.1831: file missing from distribution Problem: File missing from distribution. Solution: Add the github code analyses file.
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Oct 2020 14:30:03 +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