view src/which.sh @ 9489:c5f40fc2e3e0 v7.4.2025

commit https://github.com/vim/vim/commit/da3a77d9ec28407b8fa2aa014e76944d0a525662 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 10 23:16:09 2016 +0200 patch 7.4.2025 Problem: The cursor blinking stops or is irregular when receiving date over a channel and writing it in a buffer, and when updating the status line. (Ramel Eshed) Solution: Make it a bit better by flushing GUI output. Don't redraw the cursor after updating the screen if the blink state is off.
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jul 2016 23:30:05 +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