view src/which.sh @ 20749:dae1811e84dd v8.2.0927

patch 8.2.0927: some sshconfig and ssdhconfig files are not recognized Commit: https://github.com/vim/vim/commit/da84ac2a6f467d0b9eddcc8709433cda75d16a41 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 20:07:43 2020 +0200 patch 8.2.0927: some sshconfig and ssdhconfig files are not recognized Problem: Some sshconfig and ssdhconfig files are not recognized. Solution: Add filetype patterns.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 20:15:03 +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