view src/which.sh @ 28339:0860b12c5788 v8.2.4695

patch 8.2.4695: JSON encoding could be faster Commit: https://github.com/vim/vim/commit/beb0ef1ab2dbd9760345e3e03647b93914591d56 Author: LemonBoy <thatlemon@gmail.com> Date: Tue Apr 5 15:07:32 2022 +0100 patch 8.2.4695: JSON encoding could be faster Problem: JSON encoding could be faster. Solution: Optimize encoding JSON strings. (closes https://github.com/vim/vim/issues/10086)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Apr 2022 16: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