view src/which.sh @ 10950:2297aae8e127 v8.0.0364

patch 8.0.0364: ]s does not move cursor with two spell errors in one line commit https://github.com/vim/vim/commit/d3f78dc9ebd729475a7f24a50a91112e300d5ac9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 25 14:21:10 2017 +0100 patch 8.0.0364: ]s does not move cursor with two spell errors in one line Problem: ]s does not move cursor with two spell errors in one line. (Manuel Ortega) Solution: Don't stop search immediately when wrapped, search the line first. (Ken Takata) Add a test.
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Feb 2017 14:30: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