view src/which.sh @ 17006:b54d62497f94 v8.1.1503

patch 8.1.1503: sound test fails on Travis commit https://github.com/vim/vim/commit/ffa60dda0a9a443c6751dbcff9d9e7ee07106f0c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 9 13:56:27 2019 +0200 patch 8.1.1503: sound test fails on Travis Problem: Sound test fails on Travis. Solution: Set AUDIODEV to "null".
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Jun 2019 14:30: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