view src/which.sh @ 31047:ac1f548223a5 v9.0.0858

patch 9.0.0858: "!!sort" in a closed fold sorts too many lines Commit: https://github.com/vim/vim/commit/f00112d558eb9a7d1d5413c096960ddcc52c9f66 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 11 01:20:35 2022 +0000 patch 9.0.0858: "!!sort" in a closed fold sorts too many lines Problem: "!!sort" in a closed fold sorts too many lines. Solution: Round to end of fold after adding the line count. (closes https://github.com/vim/vim/issues/11487)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Nov 2022 02:30: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