view src/which.sh @ 25628:0407a3db3ef6 v8.2.3350

patch 8.2.3350: text properties test fails on MS-Windows Commit: https://github.com/vim/vim/commit/a401bba0805856e295c213aa504648084dae7e24 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 15 15:04:41 2021 +0200 patch 8.2.3350: text properties test fails on MS-Windows Problem: Text properties test fails on MS-Windows. Solution: Set fileformat to unix.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Aug 2021 15:15:03 +0200
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