Mercurial > vim
view src/which.sh @ 27766:2a394907825d v8.2.4409
patch 8.2.4409: Vim9: some code not covered by tests
Commit: https://github.com/vim/vim/commit/6296d1e60edf7ac150ee1707c14d4355f3220b88
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 17 16:30:11 2022 +0000
patch 8.2.4409: Vim9: some code not covered by tests
Problem: Vim9: some code not covered by tests.
Solution: Add a few more tests. Fix reported line number.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Feb 2022 17:45:03 +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