view src/which.sh @ 15854:4ac1c185b0b8 v8.1.0934

patch 8.1.0934: invalid memory access in search pattern commit https://github.com/vim/vim/commit/985079c514e9ab85598b7bca019c77d3e42526f5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 16 17:07:47 2019 +0100 patch 8.1.0934: invalid memory access in search pattern Problem: Invalid memory access in search pattern. (Kuang-che Wu) Solution: Check for incomplete equivalence class. (closes https://github.com/vim/vim/issues/3970)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Feb 2019 17:15:06 +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