view src/which.sh @ 21672:9099eb378758 v8.2.1386

patch 8.2.1386: backslash not removed afer space with space in 'isfname' Commit: https://github.com/vim/vim/commit/994b89d28dc54c896e00eba66e247addb0540272 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 7 19:12:41 2020 +0200 patch 8.2.1386: backslash not removed afer space with space in 'isfname' Problem: Backslash not removed afer space in option with space in 'isfname'. Solution: Do remove backslash before space, also when it is in 'isfname'. (Yasuhiro Matsumoto, closes #6651)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Aug 2020 19: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