view src/which.sh @ 24367:95b8937804d3 v8.2.2724

patch 8.2.2724: Vim9: concatenating to list in dict not tested Commit: https://github.com/vim/vim/commit/0d351a04e137b5c25dd558476182e4cbc81a287d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 5 21:05:26 2021 +0200 patch 8.2.2724: Vim9: concatenating to list in dict not tested Problem: Vim9: concatenating to list in dict not tested. Solution: Add a test. (issue https://github.com/vim/vim/issues/8068)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Apr 2021 21:15: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