view src/which.sh @ 10456:536a7d49249c v8.0.0121

commit https://github.com/vim/vim/commit/a2477fd3490c1166522631eee53c57d34321086a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 3 15:13:20 2016 +0100 patch 8.0.0121 Problem: Setting 'cursorline' changes the curswant column. (Daniel Hahler) Solution: Add the P_RWINONLY flag. (closes https://github.com/vim/vim/issues/1297)
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Dec 2016 15:15:03 +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