view src/which.sh @ 17028:70933f7b5de4 v8.1.1514

patch 8.1.1514: MS-Windows: wrong shell command with ! in 'guioptions' commit https://github.com/vim/vim/commit/01257a7a8e231904ff73fae1f7783e0b6eb4d5aa Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 10 14:46:04 2019 +0200 patch 8.1.1514: MS-Windows: wrong shell command with ! in 'guioptions' Problem: MS-Windows: wrong shell command with ! in 'guioptions'. Solution: Do not check for ! in 'guioptions' when applying 'shellxquote'. (Yasuhiro Matsumoto, closes #4519)
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Jun 2019 15:00:06 +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