view src/which.sh @ 17212:fd983b381ec0 v8.1.1605

patch 8.1.1605: Vim may delay processing messages on a json channel commit https://github.com/vim/vim/commit/4340fc95d50518c6eb199107e5f1144f210c7ee5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 28 22:06:49 2019 +0200 patch 8.1.1605: Vim may delay processing messages on a json channel Problem: Vim may delay processing messages on a json channel. (Pontus Leitzler) Solution: Try parsing json when checking if there is readahead.
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Jun 2019 22: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