view src/which.sh @ 28648:2cd937e40c40 v8.2.4848

patch 8.2.4848: local completion with mappings and simplification not working Commit: https://github.com/vim/vim/commit/ee4460306917431d0d17a7cb11c6646f4c6540b6 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Apr 30 15:02:22 2022 +0100 patch 8.2.4848: local completion with mappings and simplification not working Problem: Local completion with mappings and simplification not working. Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are not simplified. (closes #10323)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Apr 2022 16: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