view src/which.sh @ 15203:aa877e0b7f62 v8.1.0611

patch 8.1.0611: crash when using terminal with long composing characters commit https://github.com/vim/vim/commit/a79fd56923744e331b3a5badbf9186100818fb45 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 20 20:47:32 2018 +0100 patch 8.1.0611: crash when using terminal with long composing characters Problem: Crash when using terminal with long composing characters. Solution: Make space for all characters. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/3619, closes #3703)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Dec 2018 21:00:07 +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