view src/which.sh @ 30922:ed6acfafa17e v9.0.0795

patch 9.0.0795: readblob() always reads the whole file Commit: https://github.com/vim/vim/commit/11df3aeee548b959ccd4b9a4d3c44651eab6b3ce Author: K.Takata <kentkt@csc.jp> Date: Wed Oct 19 14:02:40 2022 +0100 patch 9.0.0795: readblob() always reads the whole file Problem: readblob() always reads the whole file. Solution: Add arguments to read part of the file. (Ken Takata, closes #11402)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Oct 2022 15:15:05 +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