view src/which.sh @ 27579:41a61dbb46d2 v8.2.4316

patch 8.2.4316: __CYGWIN32__ is not defined on 64 bit systems Commit: https://github.com/vim/vim/commit/b247e0622ef16b7819f5dadefd3e3f0a803b4021 Author: K.Takata <kentkt@csc.jp> Date: Mon Feb 7 10:45:23 2022 +0000 patch 8.2.4316: __CYGWIN32__ is not defined on 64 bit systems Problem: __CYGWIN32__ is not defined on 64 bit systems. Solution: Update #ifdefs. (Ken Takata, closes https://github.com/vim/vim/issues/9709)
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Feb 2022 12:00: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