view src/which.sh @ 26402:9a7fb0665f9f v8.2.3732

patch 8.2.3732: "set! termcap" test fails Commit: https://github.com/vim/vim/commit/cd2f8f0e0007bb77fc2035e6ad6227bb6661c612 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 3 21:18:14 2021 +0000 patch 8.2.3732: "set! termcap" test fails Problem: "set! termcap" test fails. Solution: Account for keys without a t_xx entry.
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Dec 2021 22:30: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