view src/which.sh @ 15565:30d4a5f547c7 v8.1.0790

patch 8.1.0790: code for creating tabpages in session is too complex commit https://github.com/vim/vim/commit/57a6bf056715bd5c94d8047247615e39862424e7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 22 21:27:13 2019 +0100 patch 8.1.0790: code for creating tabpages in session is too complex Problem: Code for creating tabpages in session is too complex. Solution: Simplify the code. (Jason Franklin)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Jan 2019 21:30:04 +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