view src/which.sh @ 23893:a433d0070c45 v8.2.2489

patch 8.2.2489: current buffer is wrong after deletebufline() fails Commit: https://github.com/vim/vim/commit/963ffa0a5a6091655ed72b4590ec5d5a1653bce8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 9 20:02:55 2021 +0100 patch 8.2.2489: current buffer is wrong after deletebufline() fails Problem: current buffer is wrong after deletebufline() fails to delete a line in another buffer. Solution: Restore the current buffer.
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 Feb 2021 20:15:04 +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