view src/which.sh @ 16066:473fbdb2717c v8.1.1038

patch 8.1.1038: Arabic support excludes Farsi commit https://github.com/vim/vim/commit/dc4fa190e7b9d6ba49416ce875d2192c4444d3eb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 22 16:33:15 2019 +0100 patch 8.1.1038: Arabic support excludes Farsi Problem: Arabic support excludes Farsi. Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi, Ameretat Reith)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Mar 2019 16:45:05 +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