view src/which.sh @ 16869:e264d45f268a v8.1.1436

patch 8.1.1436: writefile test fails when run under /tmp commit https://github.com/vim/vim/commit/c28cb5b16df76353a5995fda3b9341612b8630c1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 31 20:42:09 2019 +0200 patch 8.1.1436: writefile test fails when run under /tmp Problem: Writefile test fails when run under /tmp. Solution: Adjust 'backupskip. (Kenta Sato, closes https://github.com/vim/vim/issues/4462)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 May 2019 20:45:04 +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