view src/which.sh @ 14597:27e814e21594 v8.1.0312

patch 8.1.0312: wrong type for flags used in signal handlers commit https://github.com/vim/vim/commit/8e82c057ffb86cec3210ad8a22ad3f21d52e0953 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 21 19:47:48 2018 +0200 patch 8.1.0312: wrong type for flags used in signal handlers Problem: Wrong type for flags used in signal handlers. Solution: Use sig_atomic_t. (Dominique Pelle, closes https://github.com/vim/vim/issues/3356)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Aug 2018 20:00:07 +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