view src/which.sh @ 27368:7ec64e4539af v8.2.4212

patch 8.2.4212: window title test still fails in some configurations Commit: https://github.com/vim/vim/commit/1450112eef2eda211d398d6d7ac03f7a29fa4f55 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 24 22:32:28 2022 +0000 patch 8.2.4212: window title test still fails in some configurations Problem: Window title test still fails in some configurations. Solution: Explicitly set the 'title' option.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Jan 2022 23: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