view src/which.sh @ 24136:9433e10ce242 v8.2.2609

patch 8.2.2609: test disabled on MS-Windows even though it should work Commit: https://github.com/vim/vim/commit/321481299757cdd43baeed33f4c5ba543fdfc7f7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 16 13:23:30 2021 +0100 patch 8.2.2609: test disabled on MS-Windows even though it should work Problem: Test disabled on MS-Windows even though it should work. Solution: Restore the condition for skipping the test. (Ken Takata, closes #7970)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Mar 2021 13: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