view src/which.sh @ 19766:aa4cbdb676cd v8.2.0439

patch 8.2.0439: :disassemble has minor flaws Commit: https://github.com/vim/vim/commit/1082772f4c29bceebf5eb06f7e1f01bd143a2131 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 22:53:22 2020 +0100 patch 8.2.0439: :disassemble has minor flaws Problem: :disassemble has minor flaws. Solution: Format the code. Use (int) instead of (char) for %c. (also by James McCoy, closes #5831)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 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