view src/which.sh @ 31121:cc6522f808de v9.0.0895

patch 9.0.0895: file renamed twice in test, missing feature check Commit: https://github.com/vim/vim/commit/780154bf7a07813e474105837c2b5998009d9c71 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Nov 17 15:23:52 2022 +0000 patch 9.0.0895: file renamed twice in test, missing feature check Problem: File renamed twice in test; missing feature check. Solution: Remove a rename() call. Add check for cryptv feature. (closes #11564)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Nov 2022 16:30: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