view src/which.sh @ 18364:ee489bb09ea8 v8.1.2176

patch 8.1.2176: syntax attributes not combined with Visual highlighting Commit: https://github.com/vim/vim/commit/8459006af5e78bd0bd6dcfc6d54ddac35a91ee1c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 18 23:12:20 2019 +0200 patch 8.1.2176: syntax attributes not combined with Visual highlighting Problem: Syntax attributes not combined with Visual highlighting. (Arseny Nasokin) Solution: Combine the attributes. (closes #5083)
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Oct 2019 23:15: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