Mercurial > vim
view src/which.sh @ 24388:72f3e40f046c v8.2.2734
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function
Commit: https://github.com/vim/vim/commit/15e5e53ef29a457126f7c699931ab5842431f2ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 7 21:21:13 2021 +0200
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function
Problem: Vim9: cannot use legacy script-local var from :def function.
Solution: Do not insist on using "s:" prefix. (closes https://github.com/vim/vim/issues/8076)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Apr 2021 21:30: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