view src/which.sh @ 11301:cc8ece2aa389 v8.0.0536

patch 8.0.0536: quickfix window not updated when freeing quickfix stack commit https://github.com/vim/vim/commit/69f40be64555d50f603c6f22722cf762aaa6bbc1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 2 15:15:49 2017 +0200 patch 8.0.0536: quickfix window not updated when freeing quickfix stack Problem: Quickfix window not updated when freeing quickfix stack. Solution: Update the quickfix window. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 02 Apr 2017 15: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