view src/which.sh @ 29988:b2140f61826c v9.0.0332

patch 9.0.0332: overwrite check may block BufWriteCmd Commit: https://github.com/vim/vim/commit/9c8f94636b3610b898ffbbd07f6b75866d16cbca Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Aug 30 18:17:15 2022 +0100 patch 9.0.0332: overwrite check may block BufWriteCmd Problem: Overwrite check may block BufWriteCmd. Solution: Do not use overwrite check when 'buftype' is "acwrite". (closes #11011)
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Aug 2022 19:30: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