view src/which.sh @ 15778:cf702b29ea0d v8.1.0896

patch 8.1.0896: tests for restricted mode no run for MS-Windows GUI commit https://github.com/vim/vim/commit/5a6698169d10833abad88c98e5a332ddde5d110d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 11 21:45:00 2019 +0100 patch 8.1.0896: tests for restricted mode no run for MS-Windows GUI Problem: Tests for restricted mode no run for MS-Windows GUI. Solution: Make tests also work in MS-Windows GUI.
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Feb 2019 22:00:07 +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