Mercurial > vim
view src/which.sh @ 22053:0794909e2988 v8.2.1576
patch 8.2.1576: Vim9: index() does not take "true" as argument
Commit: https://github.com/vim/vim/commit/6c553f9c04a698ac2e19584f8ea8e2cb7cd98c80
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 2 22:10:34 2020 +0200
patch 8.2.1576: Vim9: index() does not take "true" as argument
Problem: Vim9: index() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6823)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Sep 2020 22:15:03 +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