Mercurial > vim
view src/which.sh @ 12471:f6534b99b76f v8.0.1115
patch 8.0.1115: crash when using foldtextresult() recursively
commit https://github.com/vim/vim/commit/495b7dd213e096361e6f15e7aed313c1d63d9d3e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 17:19:22 2017 +0200
patch 8.0.1115: crash when using foldtextresult() recursively
Problem: Crash when using foldtextresult() recursively.
Solution: Avoid recursive calls. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/2098)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 17: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