view src/which.sh @ 32116:2af88d8f87ab v9.0.1389

patch 9.0.1389: Amiga: a couple of include files are included twice Commit: https://github.com/vim/vim/commit/663ee88a8260d69d9310e22f2bfdec49af6a102e Author: =?UTF-8?q?Ola=20S=C3=B6der?= <rolfkopman@gmail.com> Date: Tue Mar 7 15:30:50 2023 +0000 patch 9.0.1389: Amiga: a couple of include files are included twice Problem: Amiga: a couple of include files are included twice. Solution: Remove duplicate includes. (Ola S?der, closes https://github.com/vim/vim/issues/12106)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 Mar 2023 16:45: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