view src/which.sh @ 12236:55cf556d8ce1 v8.0.0998

patch 8.0.0998: strange error when using K while only spaces are selected commit https://github.com/vim/vim/commit/a4f99f5a8b827162a26ca4e4d59f4f224503398a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 26 16:25:32 2017 +0200 patch 8.0.0998: strange error when using K while only spaces are selected Problem: Strange error when using K while only spaces are selected. (Christian J. Robinson) Solution: Check for blank argument.
author Christian Brabandt <cb@256bit.org>
date Sat, 26 Aug 2017 16:30:04 +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