view src/which.sh @ 18912:ccd16426a1f9 v8.2.0017

patch 8.2.0017: OS/2 and MS-DOS are still mentioned Commit: https://github.com/vim/vim/commit/6f345a1458df2db03fba7863492404e9dc8b817c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 17 21:27:18 2019 +0100 patch 8.2.0017: OS/2 and MS-DOS are still mentioned Problem: OS/2 and MS-DOS are still mentioned, even though support was removed long ago. Solution: Update documentation. (Yegappan Lakshmanan, closes #5368)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Dec 2019 21:30:04 +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