view src/which.sh @ 18390:c34ee31d0878 v8.1.2189

patch 8.1.2189: syntax highlighting wrong for tab Commit: https://github.com/vim/vim/commit/82260afb0ec358f50df9816511f480d455a1cdac Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 13:16:22 2019 +0200 patch 8.1.2189: syntax highlighting wrong for tab Problem: Syntax highlighting wrong for tab. Solution: Don't clear syntax attribute n_extra is non-zero.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 13:30:04 +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