view src/which.sh @ 27247:0667f71ec335 v8.2.4152

patch 8.2.4152: block insert with double wide character fails Commit: https://github.com/vim/vim/commit/fc6ccebea668c49e9e617e0657421b6a8ed9df1e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 20 12:22:35 2022 +0000 patch 8.2.4152: block insert with double wide character fails Problem: Block insert with double wide character fails. Solution: Adjust the expected output.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 13:30:04 +0100
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