view src/which.sh @ 22776:0583f3e2c12e v8.2.1936

patch 8.2.1936: session sets the local 'scrolloff' value to the global value Commit: https://github.com/vim/vim/commit/388908352f88e7391accb3545b082db0fc89d9f7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 1 17:40:54 2020 +0100 patch 8.2.1936: session sets the local 'scrolloff' value to the global value Problem: Session sets the local 'scrolloff' value to the global value. Solution: Do not let restoring the global option value change the local value.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Nov 2020 17:45: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