view src/which.sh @ 32333:93b3ca8df26a v9.0.1498

patch 9.0.1498: in a terminal window the cursor may jump around Commit: https://github.com/vim/vim/commit/58806c1553afa2924377f6445ac6ed8cb852f9ca Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 29 14:26:02 2023 +0100 patch 9.0.1498: in a terminal window the cursor may jump around Problem: In a terminal window the cursor may jump around. (Kenny Stauffer) Solution: Do not move the cursor to the position for terminal-normal mode. (closes #12312)
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Apr 2023 15:30:02 +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