view src/which.sh @ 22711:92f221ad267c v8.2.1904

patch 8.2.1904: still using default option values after using ":badd +1" Commit: https://github.com/vim/vim/commit/89b693e5627715cde080c3580c7b641c9bf0c06a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 25 17:09:50 2020 +0100 patch 8.2.1904: still using default option values after using ":badd +1" Problem: Still using default option values after using ":badd +1". Solution: Find a window where options were set. Don't set the window when using ":badd".
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Oct 2020 17:15:03 +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