Mercurial > vim
view src/which.sh @ 21307:b991565745fb v8.2.1204
patch 8.2.1204: Vim9: true and false not recognized in Vim9 script
Commit: https://github.com/vim/vim/commit/5d2eb0fff0fbe905da2c57fd73f7f127a73d1c99
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 13 21:59:33 2020 +0200
patch 8.2.1204: Vim9: true and false not recognized in Vim9 script
Problem: Vim9: true and false not recognized in Vim9 script.
Solution: Recognize true and false.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Jul 2020 22:00: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