Mercurial > vim
view src/which.sh @ 15052:35c2d164a630 v8.1.0537
patch 8.1.0537: ui_breakcheck() may be called recursively
commit https://github.com/vim/vim/commit/48d23bb4de3dd37ba0d0b22e7c39d6b894cb1f75
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 20 02:42:43 2018 +0100
patch 8.1.0537: ui_breakcheck() may be called recursively
Problem: ui_breakcheck() may be called recursively, which doesn't work.
Solution: When called recursively, just return. (James McCoy, closes https://github.com/vim/vim/issues/3617)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Nov 2018 02:45:06 +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