view src/which.sh @ 17942:664cc72f50c5 v8.1.1967

patch 8.1.1967: line() only works for the current window Commit: https://github.com/vim/vim/commit/8e0a8e7eb7c177807f44db6b76d8e52314248ab5 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 2 22:56:24 2019 +0200 patch 8.1.1967: line() only works for the current window Problem: Line() only works for the current window. Solution: Add an optional argument for the window to use.
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Sep 2019 23:00: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