view src/which.sh @ 16344:d24e5d848a09 v8.1.1177

patch 8.1.1177: .ts files are recognized as xml, typescript is more common commit https://github.com/vim/vim/commit/1a4dce7cad4af4de347853aad6d671da2df662ad Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 16 22:21:05 2019 +0200 patch 8.1.1177: .ts files are recognized as xml, typescript is more common Problem: .ts files are recognized as xml, while typescript is more common. Solution: Recognize .ts files as typescript. (closes https://github.com/vim/vim/issues/4264)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Apr 2019 22: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