view src/which.sh @ 27364:3834b8385025 v8.2.4210

patch 8.2.4210: window title test fails in some configurations Commit: https://github.com/vim/vim/commit/a6c09a7c20dd8dae43a99c6dc634151940c2fc6c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 24 22:02:15 2022 +0000 patch 8.2.4210: window title test fails in some configurations Problem: Window title test fails in some configurations. Solution: Only run the test if the title can be obtained.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Jan 2022 23:15: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