view src/which.sh @ 15034:6e4e0d43b20b v8.1.0528

patch 8.1.0528: various typos in comments commit https://github.com/vim/vim/commit/c4568ab37edc01e01f258d64bceddcd01633a268 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 16 16:21:05 2018 +0100 patch 8.1.0528: various typos in comments Problem: Various typos in comments. Solution: Fix the typos.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Nov 2018 16:30:07 +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