view src/which.sh @ 27253:da5b8e1405c6 v8.2.4155

patch 8.2.4155: translating strftime() argument results in check error Commit: https://github.com/vim/vim/commit/7e93577a957e4f402bb690c4c8629fd831e24a9d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 20 14:25:57 2022 +0000 patch 8.2.4155: translating strftime() argument results in check error Problem: Translating strftime() argument results in check error. Solution: Add gettext comment.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 15:30:05 +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