view src/which.sh @ 15384:a4fb69fd62a6 v8.1.0700

patch 8.1.0700: using "gt" sometimes does not redraw a tab commit https://github.com/vim/vim/commit/04b4e1a42409f81d65ae4801ac867dc0bba3d7b8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 6 22:22:07 2019 +0100 patch 8.1.0700: using "gt" sometimes does not redraw a tab Problem: Using "gt" sometimes does not redraw a tab. (Jason Franklin) Solution: Always set must_redraw in redraw_all_later().
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Jan 2019 22:30:05 +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