Mercurial > vim
view src/which.sh @ 26240:640b62dbf6cb v8.2.3651
patch 8.2.3651: Vim9: no error for :lock or :unlock with unknown variable
Commit: https://github.com/vim/vim/commit/04b568b38f848293e1ae0e680685280151acb386
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 22 21:58:41 2021 +0000
patch 8.2.3651: Vim9: no error for :lock or :unlock with unknown variable
Problem: Vim9: no error for :lock or :unlock with unknown variable.
Solution: Give an error. (closes https://github.com/vim/vim/issues/9188)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Nov 2021 23:00: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