view src/which.sh @ 32282:e47739c49487 v9.0.1472

patch 9.0.1472: ":drop fname" may change the last used tab page Commit: https://github.com/vim/vim/commit/8281a16efc76197f7b0b2a385dffb44fce66d33e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 20 18:07:57 2023 +0100 patch 9.0.1472: ":drop fname" may change the last used tab page Problem: ":drop fname" may change the last used tab page. Solution: Restore the last used tab page when :drop has changed it. (closes #12087)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Apr 2023 19:15: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