view src/which.sh @ 26398:34548fb19e0e v8.2.3730

patch 8.2.3730: "/etc/Muttrc.d/README" gets filetype muttrc Commit: https://github.com/vim/vim/commit/800b01b0c8a5983e23d8caa2be6c73d195448193 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 3 19:24:41 2021 +0000 patch 8.2.3730: "/etc/Muttrc.d/README" gets filetype muttrc Problem: "/etc/Muttrc.d/README" gets filetype muttrc. Solution: Move the Muttrc.d pattern down, add exception for *.rc files.
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Dec 2021 20: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