view src/which.sh @ 21899:8fe86125dcba v8.2.1499

patch 8.2.1499: Vim9: error when using "$" with col() Commit: https://github.com/vim/vim/commit/ec65d77fa26cc87f7ce54a5a941a799e3a667c50 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 20 22:29:12 2020 +0200 patch 8.2.1499: Vim9: error when using "$" with col() Problem: Vim9: error when using "$" with col(). Solution: Reorder getting the column value. (closes https://github.com/vim/vim/issues/6744)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Aug 2020 22: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