view src/which.sh @ 20394:6f6494d0c60e

Update version.c for missing patch number Commit: https://github.com/vim/vim/commit/2b72821924ff514727b60fb0b647d5caae8336f7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 13 23:21:55 2020 +0200 Update version.c for missing patch number
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 May 2020 23:30: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