view src/which.sh @ 15144:7960bf50d345 v8.1.0582

patch 8.1.0582: text properties are not enabled commit https://github.com/vim/vim/commit/fb95e212a2696e5b1c8b5e6b2984af59fa7ead6f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 14 12:18:11 2018 +0100 patch 8.1.0582: text properties are not enabled Problem: Text properties are not enabled. Solution: Fix sizeof argument and re-enable the text properties feature. Fix memory leak.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Dec 2018 12:30:08 +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