view src/which.sh @ 19641:73b2c928a8aa

patch 8.2.0377: no CI test for a big-endian system Commit: https://github.com/vim/vim/commit/d47e6f0b4cc82e3ccdc4605bb1811861a5b2d115 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 13 15:44:49 2020 +0100 patch 8.2.0377: no CI test for a big-endian system Problem: No CI test for a big-endian system. Solution: Test with s390x. (James McCoy, closes https://github.com/vim/vim/issues/5772)
author Bram Moolenaar <Bram@vim.org>
date Fri, 13 Mar 2020 15:45:06 +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