view src/which.sh @ 21329:bb3f60b0aca0 v8.2.1215

patch 8.2.1215: Atari MiNT support is outdated Commit: https://github.com/vim/vim/commit/e3f915d12c8fe0466918a29ab4eaef153f71a2cd Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 14 23:02:44 2020 +0200 patch 8.2.1215: Atari MiNT support is outdated Problem: Atari MiNT support is outdated. Solution: Nobody responded this code is still useful, so let's delete it.
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Jul 2020 23:15: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