view src/which.sh @ 29067:87c00c420d27 v8.2.5055

patch 8.2.5055: statusline is not updated when terminal title changes Commit: https://github.com/vim/vim/commit/327e6dd82235d70f6d5aa33ac8281e7fd79b7381 Author: LemonBoy <thatlemon@gmail.com> Date: Sat Jun 4 19:57:59 2022 +0100 patch 8.2.5055: statusline is not updated when terminal title changes Problem: Statusline is not updated when terminal title changes. Solution: Redraw the status line when the title changes. (issue https://github.com/vim/vim/issues/10425)
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Jun 2022 21:00:03 +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