view src/which.sh @ 20907:4eeda7139133 v8.2.1005

patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Commit: https://github.com/vim/vim/commit/9b68c82b7ca768100f3eb4223d100c62c5429e53 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 18 19:31:08 2020 +0200 patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Problem: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing. Solution: Use an enum value.
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 Jun 2020 19: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