view src/which.sh @ 19830:6500dcaf8e1a v8.2.0471

patch 8.2.0471: missing change to compile_list() Commit: https://github.com/vim/vim/commit/a30590d3e78aed3f6039edc642fb7532c40ea54e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 28 22:06:23 2020 +0100 patch 8.2.0471: missing change to compile_list() Problem: Missing change to compile_list(). Solution: Add error message.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Mar 2020 22:15:03 +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