view src/which.sh @ 18616:8eeed64a6325

Fix vim.desktop generation. Commit: https://github.com/vim/vim/commit/1ebbb6ee452dfca89335ac75f07c3db133b56645 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 14 21:39:32 2019 +0100 Fix vim.desktop generation.
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Nov 2019 21:45: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