view src/which.sh @ 24934:75bd12f3bfeb v8.2.3004

patch 8.2.3004: Vim9: error for missing colon given while skipping Commit: https://github.com/vim/vim/commit/8ac681a280ffae14c30784a54587ad6cb640afbb Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 15 20:06:34 2021 +0200 patch 8.2.3004: Vim9: error for missing colon given while skipping Problem: Vim9: error for missing colon given while skipping. Solution: Do not give the error when skipping. (closes https://github.com/vim/vim/issues/8385)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Jun 2021 20:15: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