view src/which.sh @ 16499:0f0de1fb70a2 v8.1.1253

patch 8.1.1253: mapping completion test fails commit https://github.com/vim/vim/commit/92b9e60cb5775ebe8949b4e112feb9f8565441e0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 3 16:49:25 2019 +0200 patch 8.1.1253: mapping completion test fails Problem: Mapping completion test fails. Solution: Fix expected output.
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 May 2019 17:00: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