view src/which.sh @ 21100:acfda84f5661 v8.2.1101

patch 8.2.1101: no error when using wrong arguments for setqflist() Commit: https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 30 22:11:44 2020 +0200 patch 8.2.1101: no error when using wrong arguments for setqflist() Problem: No error when using wrong arguments for setqflist() or setloclist(). Solution: Check for the error.
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Jun 2020 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