view src/which.sh @ 31010:4b9b76aac30c v9.0.0840

patch 9.0.0840: cannot change a slice of a const list Commit: https://github.com/vim/vim/commit/adbc08fd69433b5216e609a404d674f3e67eea9c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 6 18:27:17 2022 +0000 patch 9.0.0840: cannot change a slice of a const list Problem: Cannot change a slice of a const list. (Takumi KAGIYAMA) Solution: Remove the const flag from the slice type. (closes https://github.com/vim/vim/issues/11490)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Nov 2022 19:30:08 +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