view src/which.sh @ 22111:ef9ad6556cbc v8.2.1605

patch 8.2.1605: default maintainer on github is wrong Commit: https://github.com/vim/vim/commit/b02628b8a20ad0c42a097207b3b49ae5169d04d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 5 18:40:44 2020 +0200 patch 8.2.1605: default maintainer on github is wrong Problem: Defyyyyyyyyyyyyyyyyyyyyyyyub is wrong. Solution: Use Bram's account.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 18:45:04 +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