view src/which.sh @ 19938:f33098f1aec0 v8.2.0525

patch 8.2.0525: Win32: typo in assignment and misplaced paren Commit: https://github.com/vim/vim/commit/40655d501649e0b73e12f940b56f462dee44e06c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 6 23:49:50 2020 +0200 patch 8.2.0525: Win32: typo in assignment and misplaced paren Problem: Win32: typo in assignment and misplaced paren. Solution: Fix the syntax.
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 Apr 2020 00:01:14 +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