view src/which.sh @ 12977:2d817fd289ba v8.0.1364

patch 8.0.1364: there is no easy way to get the window position commit https://github.com/vim/vim/commit/22044dc31788d9f1c2da7725269884d9923b4795 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 2 15:43:37 2017 +0100 patch 8.0.1364: there is no easy way to get the window position Problem: There is no easy way to get the window position. Solution: Add win_screenpos().
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Dec 2017 15:45:04 +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