view src/which.sh @ 20085:f5274405ae64 v8.2.0598

patch 8.2.0598: test_eval_stuff fails in normal terminal Commit: https://github.com/vim/vim/commit/61fbb3371ee1f6a02706f52fbe064608e159be7c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 18 23:20:37 2020 +0200 patch 8.2.0598: test_eval_stuff fails in normal terminal Problem: Test_eval_stuff fails in normal terminal. Solution: Close the new window.
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Apr 2020 23:30: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