view src/which.sh @ 15480:bd12ace1bab2 v8.1.0748

patch 8.1.0748: using sprintf() instead of semsg() commit https://github.com/vim/vim/commit/1be45b2ea76ae2e39817a98a584d4d6cbb983a7b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 14 22:46:15 2019 +0100 patch 8.1.0748: using sprintf() instead of semsg() Problem: Using sprintf() instead of semsg(). Solution: Use semsg(). Fix bug with E888. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3801)
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Jan 2019 23:00:05 +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