view src/which.sh @ 22539:0f205ff4a0fd v8.2.1818

patch 8.2.1818: SE Linux: deprecation warning for security_context_t Commit: https://github.com/vim/vim/commit/8956023920bb1b6f9c381739e59b9ddab4bf7798 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 9 23:04:47 2020 +0200 patch 8.2.1818: SE Linux: deprecation warning for security_context_t Problem: SE Linux: deprecation warning for security_context_t. Solution: Use "char *" instead. (James McCoy, closes https://github.com/vim/vim/issues/7093)
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Oct 2020 23:15: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