view src/which.sh @ 10765:82792f199f9b v8.0.0272

patch 8.0.0272: crash on exit is not detected when running tests commit https://github.com/vim/vim/commit/432c839ebd5b99d548de82f66ddb5a47740fdb28 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 30 22:01:01 2017 +0100 patch 8.0.0272: crash on exit is not detected when running tests Problem: Crash on exit is not detected when running tests. Solution: Remove the dash before the command. (Dominique Pelle, closes #1425)
author Christian Brabandt <cb@256bit.org>
date Mon, 30 Jan 2017 22:15:04 +0100
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