view src/which.sh @ 23962:436e702af70c v8.2.2523

patch 8.2.2523: Svelte filetype not recognized Commit: https://github.com/vim/vim/commit/c0fcb6e0b10050145e7d334b68b1bdc5201fed05 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 17 12:29:17 2021 +0100 patch 8.2.2523: Svelte filetype not recognized Problem: Svelte filetype not recognized. Solution: Add a detection rule. (Brian Ryall, closes https://github.com/vim/vim/issues/7858)
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Feb 2021 12:30:06 +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