view src/which.sh @ 24529:db2b4e867d06 v8.2.2804

patch 8.2.2804: setting buffer local mapping with mapset() changes global Commit: https://github.com/vim/vim/commit/7ba1e4d363164e32a93cceab64b42e8c6d89e9f3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 24 13:12:38 2021 +0200 patch 8.2.2804: setting buffer local mapping with mapset() changes global Problem: Setting buffer local mapping with mapset() changes global mapping. Solution: Only set the local mapping. (closes https://github.com/vim/vim/issues/8143)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Apr 2021 13: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