Mercurial > vim
view src/which.sh @ 27438:d0096a7f8d96 v8.2.4247
patch 8.2.4247: stack corruption when looking for spell suggestions
Commit: https://github.com/vim/vim/commit/06f15416bb8d5636200a10776f1752c4d6e49f31
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 29 10:51:59 2022 +0000
patch 8.2.4247: stack corruption when looking for spell suggestions
Problem: Stack corruption when looking for spell suggestions.
Solution: Prevent the depth increased too much. Add a five second time
limit to finding suggestions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Jan 2022 12: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