view src/which.sh @ 24394:5858745d393a v8.2.2737

patch 8.2.2737: status line not updated when local 'statusline' option set Commit: https://github.com/vim/vim/commit/d8db8383926cb8729417d9515cbfaf455dbbd8d1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 8 18:27:53 2021 +0200 patch 8.2.2737: status line not updated when local 'statusline' option set Problem: Status line not updated when local 'statusline' option set. Solution: Check the 'statusline' option of each window.
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Apr 2021 18:30: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