view src/which.sh @ 25741:412b436f7788 v8.2.3406

patch 8.2.3406: on some systems tests fail without _REENTRANT Commit: https://github.com/vim/vim/commit/3ae5fc9a6a881e0be381e4cc70080ac5908d7520 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 6 18:57:30 2021 +0200 patch 8.2.3406: on some systems tests fail without _REENTRANT Problem: On some systems tests fail without _REENTRANT. (Elimar Riesebieter) Solution: Add -D_REENTRANT in configure. (closes #7402)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Sep 2021 19:00:05 +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