Mercurial > vim
view src/which.sh @ 21210:44611891e22c v8.2.1156
patch 8.2.1156: Vim9: No error for invalid command in compiled function
Commit: https://github.com/vim/vim/commit/002262f4dee452964190b0d022aa7443f602b288
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 17:47:57 2020 +0200
patch 8.2.1156: Vim9: No error for invalid command in compiled function
Problem: Vim9: No error for invalid command in compiled function.
Solution: Handle CMD_SIZE.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 18:00:05 +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