view src/which.sh @ 21967:bf68435a695a v8.2.1533

patch 8.2.1533: Vim9: error when passing getreginfo() result to setreg() Commit: https://github.com/vim/vim/commit/6a950581da52b410a74531044aae8f1f8f38a7df Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 28 16:39:33 2020 +0200 patch 8.2.1533: Vim9: error when passing getreginfo() result to setreg() Problem: Vim9: error when passing getreginfo() result to setreg(). Solution: Use dict_get_bool() for "isunnamed". (closes https://github.com/vim/vim/issues/6784)
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Aug 2020 16:45:04 +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