view src/which.sh @ 21397:62339482daab v8.2.1249

patch 8.2.1249: Vim9: disassemble test fails Commit: https://github.com/vim/vim/commit/747f11ad6ecad4dd85ce386a0a539cb853fec41a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 18:38:37 2020 +0200 patch 8.2.1249: Vim9: disassemble test fails Problem: Vim9: disassemble test fails. Solution: Change INDEX to LISTINDEX. Add test for STRINDEX.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 18:45: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