view src/which.sh @ 29066:f8e9d5023bf6

Update runtime files Commit: https://github.com/vim/vim/commit/cfa8f9a3f285060152ebbdbf86fbc7aecf1dd756 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 3 21:59:47 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Jun 2022 23:00:05 +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