view src/which.sh @ 23875:54b583156d53 v8.2.2479

patch 8.2.2479: set/getbufline test fails without the job feature Commit: https://github.com/vim/vim/commit/00385114dbd6a3d59516baa02e1ea86a1e7ee70e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 14:31:06 2021 +0100 patch 8.2.2479: set/getbufline test fails without the job feature Problem: set/getbufline test fails without the job feature. Solution: Check whether the job feature is supported. (Dominique Pell?, closes #7790)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 14:45: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