view src/which.sh @ 20820:3e606a19fa13 v8.2.0962

patch 8.2.0962: terminal test sometimes hangs on Travis Commit: https://github.com/vim/vim/commit/f6e020b1225970d95e6848b79066f82d9e65b66c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 20:11:55 2020 +0200 patch 8.2.0962: terminal test sometimes hangs on Travis Problem: Terminal test sometimes hangs on Travis. Solution: Do show output for this test temporarily.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 20:15:04 +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