view src/which.sh @ 10900:9b4574d95571 v8.0.0339

patch 8.0.0339: illegal memory access with vi' commit https://github.com/vim/vim/commit/46522af72424c7fadfa7a4cbba3dd21b82d19131 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 18 23:12:01 2017 +0100 patch 8.0.0339: illegal memory access with vi' Problem: Illegal memory access with vi' Solution: For quoted text objects bail out if the Visual area spans more than one line.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Feb 2017 23: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