view src/which.sh @ 28958:7fb63ad3a9ab v8.2.5001

patch 8.2.5001: checking translations affects the search pattern history Commit: https://github.com/vim/vim/commit/8a3704723c40779d688ef957dbe5bd8b65c25f95 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 22 15:28:31 2022 +0100 patch 8.2.5001: checking translations affects the search pattern history Problem: Checking translations affects the search pattern history. Solution: Use "keeppatterns". (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 May 2022 16: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