view src/which.sh @ 20172:1d84eaed0ec8 v8.2.0641

patch 8.2.0641: Vim9: not expanded in :hardcopy and syn-include Commit: https://github.com/vim/vim/commit/6378c4fef37df05c99e8a43616063b4ddb692876 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 26 13:50:41 2020 +0200 patch 8.2.0641: Vim9: not expanded in :hardcopy and syn-include Problem: Vim9: not expanded in :hardcopy and "syntax include". Solution: Add the EX_EXPAND flag. Expend "syntax include".
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Apr 2020 14:00: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