view src/which.sh @ 13952:76a65058766f v8.0.1846

patch 8.0.1846: Python interface is incompatible with lldb commit https://github.com/vim/vim/commit/d4a8c98ef6b294d605c5f93309509a944dc97a79 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 15 22:31:18 2018 +0200 patch 8.0.1846: Python interface is incompatible with lldb Problem: Python interface is incompatible with lldb. Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang) Partly disabled to avoid a crash.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 May 2018 22:45:05 +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