view src/which.sh @ 32184:f1602cf7022f v9.0.1423

patch 9.0.1423: WebAssembly Interface Type files are not recognized Commit: https://github.com/vim/vim/commit/890c77203637626b1005db818667084d11e653e7 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Tue Mar 21 22:03:15 2023 +0000 patch 9.0.1423: WebAssembly Interface Type files are not recognized Problem: WebAssembly Interface Type files are not recognized. Solution: Add a pattern for WIT files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12173)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Mar 2023 23:15: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