view src/which.sh @ 31930:e3ab1d0f2ef9 v9.0.1297

patch 9.0.1297: wrong value for $LC_CTYPE makes the environ test fail Commit: https://github.com/vim/vim/commit/962d91643520ec3748fcf5af3263d89ccfcdda92 Author: WuerfelDev <dev@wuerfeldev.de> Date: Fri Feb 10 20:49:08 2023 +0000 patch 9.0.1297: wrong value for $LC_CTYPE makes the environ test fail Problem: Wrong value for $LC_CTYPE makes the environ test fail. Solution: Unset $LC_CTYPE when running tests. (closes https://github.com/vim/vim/issues/11963)
author Bram Moolenaar <Bram@vim.org>
date Fri, 10 Feb 2023 22:00:03 +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