view src/which.sh @ 15192:690da0a83419 v8.1.0606

patch 8.1.0606: 'cryptmethod' defaults to a very old method commit https://github.com/vim/vim/commit/a86187b9cd529754ad85cd621169876317eb3a69 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 16 18:20:00 2018 +0100 patch 8.1.0606: 'cryptmethod' defaults to a very old method Problem: 'cryptmethod' defaults to a very old method. Solution: Default to "blowfish2", it is now widely available.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Dec 2018 18:30: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