view src/which.sh @ 21881:675bf9475fff v8.2.1490

patch 8.2.1490: Vim9: using /= with float and number doesn't work Commit: https://github.com/vim/vim/commit/93ad14710bdf77591f927a2b244bba6a8cbc7706 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 19 22:02:41 2020 +0200 patch 8.2.1490: Vim9: using /= with float and number doesn't work Problem: Vim9: using /= with float and number doesn't work. Solution: Better support assignment with operator. (closes https://github.com/vim/vim/issues/6742)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Aug 2020 22:15: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