Mercurial > vim
view src/which.sh @ 23519:cb66613dd9d5 v8.2.2302
patch 8.2.2302: Vim9: using an option value may use uninitialized memory
Commit: https://github.com/vim/vim/commit/a79925a0a8f00577782090859eb0ef69e220d4aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 5 17:50:28 2021 +0100
patch 8.2.2302: Vim9: using an option value may use uninitialized memory
Problem: Vim9: using an option value may use uninitialized memory.
Solution: Clear v_lock. (closes https://github.com/vim/vim/issues/7620)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Jan 2021 18:00:04 +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