view src/which.sh @ 10253:a92c4abb8c1f v8.0.0024

commit https://github.com/vim/vim/commit/8ddef48d1eade1911b946fdda8c73c80856e6273 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 9 15:43:25 2016 +0200 patch 8.0.0024 Problem: When the netbeans channel closes, "DETACH" is put in the output part. (Ozaki Kiichi) Solution: Write "DETACH" in the socket part.
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Oct 2016 15:45:03 +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