view src/which.sh @ 15121:895abc8a5195 v8.1.0571

patch 8.1.0571: non-silent execute() resets display column to zero commit https://github.com/vim/vim/commit/446e7a3cd36b2de7d559f167eb5795d1e1cd3ddb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 8 13:57:42 2018 +0100 patch 8.1.0571: non-silent execute() resets display column to zero Problem: Non-silent execute() resets display column to zero. Solution: Keep the display column as-is.
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Dec 2018 14:00:07 +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