view src/which.sh @ 23563:87671ccc6c6b v8.2.2324

patch 8.2.2324: not easy to get mark en cursor posotion by character count Commit: https://github.com/vim/vim/commit/6f02b00bb0958f70bc15534e115b4c6dadff0e06 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 20:22:54 2021 +0100 patch 8.2.2324: not easy to get mark en cursor posotion by character count Problem: Not easy to get mark en cursor posotion by character count. Solution: Add functions that use character index. (Yegappan Lakshmanan, closes #7648)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Jan 2021 20:30:04 +0100
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