view src/which.sh @ 11366:b16bc115a270 v8.0.0568

patch 8.0.0568: 1gd may hang commit https://github.com/vim/vim/commit/60402d68da09997cacdeec71fd22c9344f8f40d5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 20 18:54:50 2017 +0200 patch 8.0.0568: 1gd may hang Problem: "1gd" may hang. Solution: Don't get stuck in one position. (Christian Brabandt, closes https://github.com/vim/vim/issues/1643)
author Christian Brabandt <cb@256bit.org>
date Thu, 20 Apr 2017 19:00:06 +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