view src/which.sh @ 18120:ed222e264905 v8.1.2055

patch 8.1.2055: not easy to jump to function line from profile Commit: https://github.com/vim/vim/commit/181d4f58cc421f2e6d3b16333d4cb70d35ad1342 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 18 22:04:56 2019 +0200 patch 8.1.2055: not easy to jump to function line from profile Problem: Not easy to jump to function line from profile. Solution: Use "file:99" instead of "file line 99" so that "gf" works. (Daniel Hahler, closes #4951)
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Sep 2019 22:15:03 +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