view src/which.sh @ 18650:3aab097c8d26 v8.1.2317

patch 8.1.2317: no test for spell affix file with flag on suffix Commit: https://github.com/vim/vim/commit/37ff4cf87069e54f991d86df9beff19bfdd15875 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 17 20:10:20 2019 +0100 patch 8.1.2317: no test for spell affix file with flag on suffix Problem: No test for spell affix file with flag on suffix. Solution: Add a test case.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Nov 2019 20:15:03 +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