view src/which.sh @ 20484:538278607c84 v8.2.0796

patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm Commit: https://github.com/vim/vim/commit/37ebd42f16734838ab68be91da291c4ec8610f47 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 18 23:27:50 2020 +0200 patch 8.2.0796: MS-Windows: compiler can't handle C99 construct in libvterm Problem: MS-Windows: compiler can't handle C99 construct in libvterm. Solution: Change to C90 construct.
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 May 2020 23:30:03 +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