view src/which.sh @ 32685:3868e8035b8c v9.0.1673

patch 9.0.1673: cannot produce a status 418 or 503 message Commit: https://github.com/vim/vim/commit/80adaa8ae8398403ca4e9797219ea9a501fc76a5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 7 18:57:40 2023 +0100 patch 9.0.1673: cannot produce a status 418 or 503 message Problem: Cannot produce a status 418 or 503 message. Solution: Add err_teapot().
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jul 2023 20:00:05 +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