view src/which.sh @ 14083:8a9a00357676 v8.1.0059

patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251" commit https://github.com/vim/vim/commit/bc5020aa4d7ef4aea88395eff858f74fc881eab9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 16 17:25:22 2018 +0200 patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251" Problem: Displayed digraph for "ga" wrong with 'encoding' "cp1251". Solution: Convert from 'encoding' to "utf-8" if needed. (closes https://github.com/vim/vim/issues/3015)
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jun 2018 17: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