view src/which.sh @ 24782:8e5f75fa4918 v8.2.2929

patch 8.2.2929: accidentally enable tcl by default Commit: https://github.com/vim/vim/commit/0a808598e4edb3f1a167ac8c5c1f9084af625c4d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 2 19:22:45 2021 +0200 patch 8.2.2929: accidentally enable tcl by default Problem: Accidentally enable tcl by default. Solution: Revert change to Makefile
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Jun 2021 19: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