view src/which.sh @ 23956:4d88e660ce32 v8.2.2520

patch 8.2.2520: missing tests for 'listchars' Commit: https://github.com/vim/vim/commit/04ea7e9049706788179945e2a91922c0b7cb9ed0 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 16 21:14:33 2021 +0100 patch 8.2.2520: missing tests for 'listchars' Problem: Missing tests for 'listchars'. Solution: Add a few more checks. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7854)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Feb 2021 21:15:04 +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