view src/which.sh @ 16632:30de89c1d090 v8.1.1318

patch 8.1.1318: code for text changes is in a "misc" file commit https://github.com/vim/vim/commit/ec28d1516eb8bb5dcaa42de145953a6d49aebb6f Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 11 18:36:34 2019 +0200 patch 8.1.1318: code for text changes is in a "misc" file Problem: Code for text changes is in a "misc" file. Solution: Move the code to change.c.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 May 2019 18:45:06 +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