view src/which.sh @ 32303:71c5920fb43e v9.0.1483

patch 9.0.1483: += operator does not work on class member Commit: https://github.com/vim/vim/commit/22363c69945e48a7496f0ae00bc06235084ddd7a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 24 17:15:25 2023 +0100 patch 9.0.1483: += operator does not work on class member Problem: += operator does not work on class member. Solution: Do not skip as if "this." was used. (Christian Brabandt, closes #12263)
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Apr 2023 18:30: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