view src/which.sh @ 16627:58009c45c31c v8.1.1316

patch 8.1.1316: duplicated localtime() call commit https://github.com/vim/vim/commit/d6896731ecb74b419389f75d79210e088a9caa77 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 11 13:09:42 2019 +0200 patch 8.1.1316: duplicated localtime() call Problem: Duplicated localtime() call. Solution: Delete one.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 May 2019 13:15: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