view src/which.sh @ 19251:158d4eeba201 v8.2.0184

patch 8.2.0184: blob test fails Commit: https://github.com/vim/vim/commit/92be6e3f46120bb8e6c8fca0a7868a08df8b3345 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 30 19:39:04 2020 +0100 patch 8.2.0184: blob test fails Problem: Blob test fails. Solution: Check for different error when float feature is missing.
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Jan 2020 19:45:03 +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