view src/which.sh @ 17954:3bcd05fc2d56 v8.1.1973

patch 8.1.1973: cannot build without the quickfix feature Commit: https://github.com/vim/vim/commit/61c18652c9374a60ad5ed07a5644217b921c1596 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 11:51:17 2019 +0200 patch 8.1.1973: cannot build without the quickfix feature Problem: Cannot build without the quickfix feature. Solution: Remove #ifdef for qf_info_T.
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 12:00: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