view src/which.sh @ 17436:e1b5c15f5fee v8.1.1716

patch 8.1.1716: old style comments are wasting space commit https://github.com/vim/vim/commit/ab0a789808ecf8de8f0805ec332f69029897fdb5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 19 23:15:12 2019 +0200 patch 8.1.1716: old style comments are wasting space Problem: Old style comments are wasting space Solution: Use new style comments in option header file.
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Jul 2019 23:30: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