view src/which.sh @ 31309:472ef2fdaa89 v9.0.0988

patch 9.0.0988: using feedkeys() does not show up in a channel log Commit: https://github.com/vim/vim/commit/b55ae8ce42c8a83d14bfde2c138fcc74f447de68 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 2 13:37:36 2022 +0000 patch 9.0.0988: using feedkeys() does not show up in a channel log Problem: Using feedkeys() does not show up in a channel log. Solution: Add ch_log() calls and clean up the code.
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Dec 2022 14:45: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