view src/which.sh @ 13555:78ead137b2ad v8.0.1651

patch 8.0.1651: cannot filter :ls output for terminal buffers commit https://github.com/vim/vim/commit/0751f51a5b428805a8c1e9fe529693d032bec991 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 29 16:37:16 2018 +0200 patch 8.0.1651: cannot filter :ls output for terminal buffers Problem: Cannot filter :ls output for terminal buffers. Solution: Add flags for terminal buffers. (Marcin Szamotulski, closes https://github.com/vim/vim/issues/2751)
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Mar 2018 16:45: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