view src/which.sh @ 27601:cb46dd386990 v8.2.4327

patch 8.2.4327: may end up with no current buffer Commit: https://github.com/vim/vim/commit/e3537aec2f8d6470010547af28dcbd83d41461b8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 8 15:05:20 2022 +0000 patch 8.2.4327: may end up with no current buffer Problem: May end up with no current buffer. Solution: When deleting the current buffer to not pick a quickfix buffer as the new current buffer.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Feb 2022 16: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