Mercurial > vim
view src/which.sh @ 23138:1a9705075244 v8.2.2115
patch 8.2.2115: Vim9: some errors not tested for; dead code
Commit: https://github.com/vim/vim/commit/7257af477bc5f33153f8f700b643551525f1105b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 8 22:08:51 2020 +0100
patch 8.2.2115: Vim9: some errors not tested for; dead code
Problem: Vim9: some errors not tested for; dead code.
Solution: Add a test. Remove dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 08 Dec 2020 22:15:04 +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