view src/which.sh @ 12527:259983a729fa v8.0.1142

patch 8.0.1142: window toolbar menu gets a tear-off item commit https://github.com/vim/vim/commit/378daf87d380b9f3c4f822786dfbfdcad9ca2db9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 23 23:58:28 2017 +0200 patch 8.0.1142: window toolbar menu gets a tear-off item Problem: Window toolbar menu gets a tear-off item. Solution: Recognize the window toolbar.
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Sep 2017 00:00: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