view src/which.sh @ 32341:d98bc6992945 v9.0.1502

patch 9.0.1502: no test for deleting the end of a long wrapped line Commit: https://github.com/vim/vim/commit/5b10a140983c16140d69a214494c4b8af8b34763 Author: Luuk van Baal <luukvbaal@gmail.com> Date: Sun Apr 30 19:15:30 2023 +0100 patch 9.0.1502: no test for deleting the end of a long wrapped line Problem: No test for deleting the end of a long wrapped line. Solution: Add a test to check the right text is displayed. (Luuk van Baal, closes #12318)
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Apr 2023 20:30:06 +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