Mercurial > vim
view src/which.sh @ 27279:6e1b0c4ab668 v8.2.4168
patch 8.2.4168: disallowing empty function name breaks existing plugins
Commit: https://github.com/vim/vim/commit/e6a4200ff47708febcd7cb2b8c3dd3801a975d43
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 21 10:32:58 2022 +0000
patch 8.2.4168: disallowing empty function name breaks existing plugins
Problem: Disallowing empty function name breaks existing plugins.
Solution: Allow empty function name in legacy script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Jan 2022 11:45:03 +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